Hi.

I was trying to find a way to prevent server crash every time I do a streaming.

Basically I have a popular movie website and every time I release an episode I get minimum 30k live viewers and whenever I pass 8k live viewers, 20gbit bandwidth becomes useless. I tried to put 5mbps bandwidth limit occasionally to prevent server crash but it didn’t do much. And I don’t want to rent 100 gbit network bandwidth every time I release an episode. So my question is, is there a way to deal with 30 to 60k live viewers only by using 20 gbit network or I just need to rent 100 gbit network occasionally?

Thank you!

1 point

50000 users at 20gb is 400kbit per second per second? That ain’t gonna cut it even for potato quality. The recommended bit rate for 480p is 5 times higher the recommended bit rate for 720 ten times higher. So you maxing out at 5k users makes sense.

Now I am astonished a single server can service 5000 streams at rge same time. That’s some scalable server software.

permalink
report
reply
1 point

You can always look to implement webtorrent. It does not work everywhere, but it works very well.

Basically how it works it’s that you have a streemable file, you make a torrent, and a javascript client on the browser it’s capable of downloading and streaming it.

https://webtorrent.io/

permalink
report
reply
1 point

I wouldn’t expect a server crash from bandwidth limitations. A few questions: Do you have metrics on the bandwidth saturation and server resources? Have you isolated the issue to be certainly with bandwidth?

permalink
report
reply
1 point

All the time whenever the crash happens, bandwidth usage goes up all the way and website stops responding.

permalink
report
parent
reply
1 point

Use a more efficient type of video codec / audio. Going from basic hardware encoded H.264 to something like x264 can increase efficiency greatly. I have no idea what your setup is. Or moving onto VP9/AV1/H.265

permalink
report
reply
1 point

H.264 and x264 are the same thing. H.264 is the name of the math standard. x264 is the name of an open source software that implemented that math.

permalink
report
parent
reply
1 point

You are going to need some CDN relays or something. 30k live viewers will destroy a single connection.

permalink
report
reply

Data Hoarder

!datahoarder@selfhosted.forum

Create post

We are digital librarians. Among us are represented the various reasons to keep data – legal requirements, competitive requirements, uncertainty of permanence of cloud services, distaste for transmitting your data externally (e.g. government or corporate espionage), cultural and familial archivists, internet collapse preppers, and people who do it themselves so they’re sure it’s done right. Everyone has their reasons for curating the data they have decided to keep (either forever or For A Damn Long Time ™ ). Along the way we have sought out like-minded individuals to exchange strategies, war stories, and cautionary tales of failures.

Community stats

  • 1

    Monthly active users

  • 913

    Posts

  • 4.6K

    Comments

Community moderators