Open hhhhsdxxxx opened 3 years ago
We found this is your first time to contribute to Dragonfly, @hhhhsdxxxx 👏 We really appreciate it. Just remind that you have read the contribution guide: https://github.com/dragonflyoss/Dragonfly/blob/master/CONTRIBUTING.md If you didn't, you should do that first. If done, welcome again and please enjoy hacking! 🍻
@jim3ma cc
@hhhhsdxxxx Cloud you please add a detailed description for this PR problem is this PR to solve? For example, explain the usage scenarios, the problems to be solved, etc.
The current scheduling algorithm will give priority to downloading from other peers in the P2P network. When there is no peer node available in the P2P network, it will try to download from the supernode. If the supernode is currently serving too much(In default is 4.) pieces are being downloaded, the peer will wait for a while.
also cc/ @jim3ma
@hhhhsdxxxx Cloud you please add a detailed description for this PR problem is this PR to solve? For example, explain the usage scenarios, the problems to be solved, etc.
The current scheduling algorithm will give priority to downloading from other peers in the P2P network. When there is no peer node available in the P2P network, it will try to download from the supernode. If the supernode is currently serving too much(In default is 4.) pieces are being downloaded, the peer will wait for a while.
also cc/ @jim3ma
updated. It's a different p2p system service for image-service.
Ⅰ. Describe what this PR did
Only first seed node will download resources from source, others will download(prefetch) from other peer nodes instead.
feature/seed implements the new p2p distribution system for image-service.
all seed download from seed ------> first seed node download from seed, other seed nodes download from other seed nodes.
Ⅱ. Does this pull request fix one issue?
Ⅲ. Why don't you add test cases (unit test/integration test)? (你真的觉得不需要加测试吗?)
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews