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 upServer requirements #1312
Server requirements #1312
Comments
This comment has been minimized.
This comment has been minimized.
|
There's two roles a server can play, tracker and seeder. If you are tracking your site's users to connect them, bandwidth is low, but memory requirement grows with your users, start with at least 512MB server and expect to double per 500 users or so. In terms of (web)seeding, you would need a lot of bandwidth, so try running in an unlimited bw server. |
This comment has been minimized.
This comment has been minimized.
|
Thanks Diego! So if I add Magnet link (or upload file "filename.torrent") with video (NOT THE VIDEO ITSELF) through my console to web site, and then visitors just open the page and watching this video, so am I tracker, right? Is this site: https://www.bitchute.com/video/EJoFbcWKeP0/ working as I described above??? |
This comment has been minimized.
This comment has been minimized.
|
No, Bitchute uses default trackers, maybe their own too, haven't checked. If you seed a torrent you are a peer for that torrent and trackers tracker you in that torrent so other peers can connect to you. |
This comment has been minimized.
This comment has been minimized.
|
Hey @NovoeVideo, Using Bitchute as an example, it uses the default trackers of btorrent.xyz, fastcast.nz and openwebtorrent.com. To implement web torrent on a website in the same way that Bitchute has, you would only need a webserver which has both the torrents content and the .torrent file. Since Bitchute uses the public websocket trackers, you wouldn't need to host your own but this I personally would so you can ensure availability if the other trackers go down. You can assume due to the short lifespan of the default webtorrent implementation the majority of the bandwidth of the torrent will come from these webseeds, so the bandwidth needed will depend on your torrent and the number of visitors. Hope this has helped! |
This comment has been minimized.
This comment has been minimized.
|
@SilentBot1 thanks for looking into their implementation and the thorough explanation! |
This comment has been minimized.
This comment has been minimized.
|
@SilentBot1 you explained how Bitchute work thanks for that, but i have a question, you said that "The content for the torrent is loaded from three different webseeds located at seed1.bitchute.com, seed2.bitchute.com and seed3.bitchute.com respectively which are running NGINX as the webserver. " |
This comment has been minimized.
This comment has been minimized.
|
@Er-rchydy Just to state I'm not the developer nor maintainer of Bitchute. What I'm saying could be completely incorrect.
To correct my previous statement, the actual web seeds are running express but they are also passing through a NGINX server, this can be seen by both the
These peers are webseeds which operate from a express application; these express applications could be serving the range requests from When I downloaded an example file I only received webseed peers, combined with this issue with Without further clarification from the actual developer there is no clear way to know how they have achieved this result; though I know it's possible to use a Please correct me if anything you spot is incorrect, |
This comment has been minimized.
This comment has been minimized.
|
@ @SilentBot1 thanks for the detailed response. |
This comment has been minimized.
This comment has been minimized.
|
@Er-rchydy it's no problem. I have an working example of a torrent with both a webrtc peer also with a webseed peer; the client seems to download the files roughly 50/50 between the different peers, indifferent to the type of seed. The testing environment was on a single host so latency and bandwidth wasn't a factor, I would be interested in seeing how varying latency or bandwidth between both the webseeds, webrtc peers and the client alter this ratio. I understand what you're saying and It would be possible to add additional custom logic to only download from a webseed if the availability from webrtc peers is < 1 to promote inter peer downloading, using the webseed as a fallback, but I think this is a issue as webtorrents are so short lived and it would require scraping the trackers (or DHT) before downloading to ensure availability, causing additional delay on torrent addition, this something which I personally think, if implemented, it should be implemented at the library level and not the application level. All the best. |
This comment has been minimized.
This comment has been minimized.
|
Feel free to continue this discussion. I'm just going to close this issue since it's not a bug with WebTorrent. |
This comment has been minimized.
This comment has been minimized.
|
@SilentBot1 thanks that what i was looking for. so the client doesn't distinguish between the type of seed. |
This comment has been minimized.
This comment has been minimized.
|
@Er-rchydy an example of removing webseeds if the swarm has over an a certain amount of completed peers reported by trackers could look something like this.
This is similar to what you were asking as it would help promote more inter peer sharing while reducing the load on the webseeds. The downside to this approach is that you can't fully determine the health of the swarm by completed peers alone, the swarm upload speed may still be extremely slow. All the best. |
This comment has been minimized.
This comment has been minimized.
|
@SilentBot1 thanks for the example it was really helpful, i have a question , does doing this slowdown loading files, i mean does it has impact on latency somehow, cuz i'm trying to use it in a |
This comment has been minimized.
This comment has been minimized.
|
@Er-rchydy since in the browser, webtorrent uses websockets for communication with the trackers; the time it takes to complete a scrape request depends on your ping to the closest tracker, though the whole process of scraping only took
For livestreaming using webtorrent, assuming you're chunking up the stream into segments and seeding them from the browser, I'd imagine the biggest factor which will add latency is wrtc peer discovery or the current issue where What you're doing sounds quite interesting, |

Hi guys!
Please calrify, what are server requirements for installing WebTorrent on my web site for streaming videos?
First of all, BANDWIDTH! Does the traffic from torrent file are coming through the hosting server?
Thank you.