Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

37.大文件转存问题:服务器A有一个1000G的文件, 需要通过服务端B转发到服务端C,但是服务器B内存只有1个g, 怎么去实现这个大文件转存 #39

Open
airuikun opened this issue Aug 4, 2019 · 4 comments

Comments

@airuikun
Copy link
Owner

airuikun commented Aug 4, 2019

大文件转存问题:服务器A有一个1000G的文件, 需要通过服务端B转发到服务端C,但是服务器B内存只有1个g, 怎么去实现这个大文件转存

@GuoJikun
Copy link

GuoJikun commented Aug 5, 2019

分片

@IrvingZhao
Copy link

nginx之类的服务器proxy一下ftp之类的文件传输协议多好

@sml782
Copy link

sml782 commented Mar 2, 2020

  1. 分片+stream传输,维护一个分片列表
  2. 断点续传+文件秒传
  3. 抽样计算整个文件 hash,防止文件重复,为了文件秒传做基础
  4. 分片都传输成功后,以追加方式合并流文件

@IrvingZhao
Copy link

这个东西取决于协议吧
单纯做中转服务器的话,有很多软负载的软件可以完成这个,核心的影响应该在带宽,而不是内存

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants