Finally found a good server location for video streaming but how to pull off a good streaming speed

dev666

Regular Member
Joined
Sep 15, 2015
Messages
312
Reaction score
213
Hi Guys,

So i have been testing the ping from several server datacenter to my visitors location and bought the server, since my traffic are mainly from korea/japan, and i found this seattle which is located in the US which has extremely low MS to those area, although not very low, but if i buy a server from my country and ping to those countries, the MS is about the same. So i guess this server location will be very good for my vistiors, and here's my question.

What actually contributes to the streaming speed ?

1) Server location/Data center ? ( i got one now, already very close to my visitors ), as compared to previous server which is located at Warsaw/Poland. As you can see, it's over 250MS.

https://imgur.com/a/BaG4q

2) i will be using pseudo streaming (nginx) to serve the videos. heard that progressive download is not so good.

3) Ram will affect also ? I will have 32gb ram, not sure if there's enough for 2500 concurrent viewers, it's a video on demand, encoded and ready to view. Should i add 16gb ram more ? or 32 is enough

4) Bandwidth ? (will be using 10gbps unmetered). But provider didn't say the guaranteed speed. But it will be dedicated port ( unshared, able to use 24/7 ).

5) Raid level ? (will be using software raid 10 -> 10x8tb hdd), the server have two more drive which is ssd, 2x150gb ssd. Not sure how to use these two drives, does these two drives matter ?

6) does the packet loss affect the total streaming speed ? I have been researching on this packet loss stuff. if it does, who is responsible for the packet loss ? The bandwidth provider or the server setup configuration?

7) Just to add on, i was using 3 servers to load balance, each server was serving around 500-800mbps, not sure if this 10gbps is able to handle 3 servers combined (any advice on this too)

will be streaming to 2500+ concurrent viewers. Server will be separate from my main server(used for serving visitors only, not videos).

Anything i missed out to pull a good streaming speed ?

This will be the spec of the server :

Dual Xeon 5520
32GB RAM
IPMI
2x120GB SSD + 10 x 8TB HDD

Good thing is provider say that if we want add storage anytime, we can jst let them know and they will add.

Any good advice for a good streaming speed is appreciate. Please don't ask me to use a cdn, cdn is very expensive for me :(

Thank you !!!
 
- Packet loss can occur if your server's hardware is struggling to keep up with inbound traffic. Maxing your bandwidth can cause congestion which will lead to packet loss also. It's very much a 2-way street.

- In regards to packet loss affecting total streaming speed, you can take a look at this thesis. It gives a great insight into your question.

- Your 32GB of ram should be enough to serve 2500 consecutive viewers but to be safe and avoid packet loss consider upping by at least 16GB.

- Your bandwidth requirements can be calculated (assuming 30fps and max bitrate)

1080p @ 6 Mbps X 2500 (viewers) = 15000 (15gbps)
720p @ 4 Mbps x 2500 (viewers) = 10000 (10gbps)
480p @ 2 Mbps x 2500 (viewers) = 5000 (5gbps)

That's really all I can comment on. Hopefully, someone more qualified can give you the additional info you require. Good luck.
 
Last edited:
Back
Top