Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upHow to seed a lot of files? #790
Comments
This comment has been minimized.
This comment has been minimized.
|
The way that torrents work requires a high number of messages just to remain "findable" by peers. There are messages to the DHT (which take ~3 seconds per torrent) and to the tracker (much faster). These need to be resent every 15 minutes. So, 300 torrents * 3 seconds = 15 minutes. So, adding around 300 torrents will mean that there's a constant low-level amount of UDP traffic to the DHT. Going too many factors above this number will probably overwhelm your router. (This is just for the traditional BitTorrent DHT. Talking to WebTorrent trackers should be a lot more efficient.) I recommend taking a look at "web seeding", which lets you host the files via http/https with something like Apache or nginx (which is simpler and more efficient) and include the http link in your .torrent file. Most torrent clients will only use the web seed when there are few or no peers available.
You can read a bit more about web seeding here: http://getright.com/seedtorrent.html |
This comment has been minimized.
This comment has been minimized.
|
Thanks for that really detailed answer, I can see the problem. The reason however that I am using torrent are because the internet connection really often drop here in South America, so downloading by http is often a really bad experience. You would be amazed how bad it is! I think the solution is, whenever the client hits the page, the server callbacks and starts the torrent seeding. This way I am only seeding the pictures which I know are in demand. |
This comment has been minimized.
This comment has been minimized.
|
@kevinsimper I think you'll find that torrent clients like WebTorrent do a better job of downloading over http than a traditional web browser because they're fetching smaller pieces each time, so if one piece request fails the whole download won't fail. But I think your approach of on-demand seeding sounds workable too! Kudos to you for making things better for yourself and others in South America -- good stuff! (Did you know that |
This comment has been minimized.
This comment has been minimized.
|
This thread has been automatically locked because it has not had recent activity. To discuss futher, please open a new issue. |
I have a lot of gallary images, so how would you seed a lot of files the smartest, like 100.000+ gallary images?
I am right now just seeding them with
client.seedbut it does not really scale.Preferably I would only start seeding something when a peer connects.
I did search the issues and could not find anyone asking, so I thought this could be useful for others also to know.