Peers with lower bandwidth start more slowly as well. #899
Replies: 2 comments 2 replies
-
It's most likely that all 100 leechers are not able to connect at the same time to the seeder. The current behaviour is currently to favour peers that have a certain peer ID, then to favour based on whether the peers want to leech or seed depending on the state of the local client. So in the case of the seeding client, it will prefer peers with a particular peer ID and then kick the ones that aren't showing interest in leeching from it. I guess you would go about debugging this by seeing if the leechers that take a while to start downloading are actually connecting to the seeder, and how long they are connected to it before they start to receive data. If there is a bug here, it could be that leechers will are not kicking or favouring peers that don't have data that they want. I can't say for certain that isn't the case without digging in to double check. Let me know what you think. |
Beta Was this translation helpful? Give feedback.
-
You are right. The number of max connections that could be established is limited(50, however I have 100 leechers. So not every leecher could connect to the server. This is also proved as I count the chunks receiving from the initial seeder.). I count the total download time of all leechers, which decreases from 81.4 to 74.6 with the number of max connections increasing to 200. |
Beta Was this translation helpful? Give feedback.
-
I have a cluster where there is one seeder and one hundred leeachers. The leechers have different network bandwidth. They start downloading at the same time. For one of the slower leeachers, the dowload log is shown as below.
The slow leecher is idle at the beginning. I am sure that it has found the seeder and other leechers as I have set the announce interval to 1s after I have found this problem. However, even when the annouce interval is set to 1s, this problem still exists.
Can you give me some ideas to debug?
Beta Was this translation helpful? Give feedback.
All reactions