Giter Club home page Giter Club logo

Comments (7)

chenchaobing avatar chenchaobing commented on May 22, 2024

CM不仅仅是作为源站的代理,还会把从源下载的数据,提供分片下载。蜻蜓客户端从CM下载分片数据,然后会组成P2P网络。蜻蜓客户端目前是通过配置文件,来指定CM解决,也可以通过参数来指定。

from dragonfly.

nonly avatar nonly commented on May 22, 2024

@chenchaobing p2p性能测试如何,我的环境dfget客户端比较少(<10个),和wget对比感觉没有速度优势;

from dragonfly.

chenchaobing avatar chenchaobing commented on May 22, 2024

@nonly p2p是在同时下载的客户端节点数越多的情况下,p2p的效果会越明显。
因为蜻蜓客户端本身是会有限速的,再加上使用dfget下载的时候的时候,客户端会跟CM进行通信,所以单个dfget的下载速度对比wget没有速度优势是正常的,可以调整客户端限速以及进程数再进行测试。

另外P2P可以解决源的带宽不足,源被打爆的场景。如果能够打满源的带宽,那么你再用dfget和wget进行测试,就能测试出比较明显的效果了。

from dragonfly.

jacky098123 avatar jacky098123 commented on May 22, 2024

dfget 难道不是执行完就退出了么,没有后台服务如何做给其他dfget传输数据?

from dragonfly.

jacky098123 avatar jacky098123 commented on May 22, 2024

@chenchaobing 看文档,只有在docker的情况下,调用proxy,proxy 是个后台进程。这种情况下才能进行 P2P。不知道是我搭的环境有问题,还是我理解有问题

from dragonfly.

chenchaobing avatar chenchaobing commented on May 22, 2024

@jacky098123 dfget 执行完了并不会马上退出,会提供后台服务给其他的dfget传输数据,只有当一定时间点,没有任何请求时,那么dfget会触发清理操作,把本地缓存的文件清理,同时真正退出进程。

from dragonfly.

chenchaobing avatar chenchaobing commented on May 22, 2024

@jacky098123 docker的请求下,proxy只是为了把拉取镜像的请求代理到dfget,真正的p2p逻辑还是在CM集群和dfget之间。

from dragonfly.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.