Wowza Community

server port

our server is E5-2650 with 128 Giga Ram and ssd Hard disks.one of our customers wants to stream to 5000 viewers

with the following options

5000 viewers @ 1024kbps
5000 viewers @ 1792kbps
5000 viewers @ 2048kbps
5000 viewers @ 3072kbps

what port should we use? would it be enough 10Gbps port on the server?

Thanks.

Hello @Paul Santos

It would be hard to tell without load testing first, since there’s several factors of how many incoming streams, transcoding, using SSL, etc.

Here’s how to request the load test tool:

https://www.wowza.com/docs/test-wowza-streaming-engine-media-server-streaming-load

How to size your Wowza Server:

https://www.wowza.com/blog/4-tips-for-sizing-streaming-server-hardware

Transcoding benchmark:

https://www.wowza.com/docs/wowza-transcoder-performance-benchmark

Ports needed for Wowza Streaming Engine:

https://www.wowza.com/docs/how-to-get-started-as-a-wowza-streaming-engine-manager-administrator#configure-streaming-ports

-JasonT

Hi @Paul Santos,

Is that 5000 viewers per bitrate, or 5000 viewers total? A rule of thumb for the required bandwidth when using HLS is:

[number of concurrent viewers] x [average bitrate per viewers] x 1.2

That would be 5000 x 1024 x 1.2 = ~6.1 Gbps for the lowest bitrate, or ~18.4Gbps for the highest. In case of the latter, a 10Gbps would obviously not be enough. MPEG-DASH has less overhead, and RTMP/RTSP have barely any overhead, so in that case you can drop the “x 1.2”

I would most certainly tune the Linux kernel, simply Google for it, make sure you find some information that matches a recent Linux kernel (e.g. don’t blindly use optimization tricks for a 2.6 kernel on a 4.x kernel)

I’d also tune Wowza. See e.g. https://www.wowza.com/community/questions/4852/question-aboutsendbuffersizereceivebuffersize.html (post from Roger @ Nov 27 '13 at 6:24 PM) and https://www.wowza.com/docs/tune-wowza-streaming-engine-for-optimal-performance

Also make sure that your Heap Size is tuned. Wowza provides default settings for Development or Production, but you may want to go beyond 10G - also dependent on how many incoming streams you have and if you intend to do transcoding.

Speaking of which, if you have plans for transcoding, then an E5-2620 will barely be enough to transcode into these 4 bitrates, especially if you go Full-HD. If this is only a single stream, then even a consumer-grade NVidia GTX can help, although professional GPUs are recommended. But maybe the CPU will be able to handle this, you’ll have to test. This also depends on if it’s event based (so that the CPU can catch some breathe in between), or if it’s 24/7

The Load Test Tool that Jason recommends here, is a good way to check if you’re server’s ready. Tip: fire up some heavyweight AWS EC2 machines (or corresponding VMs on Azure, Google Cloud, etc.) in different regions and zones, and let them fire away at your server all at once. Since you can stop and optionally terminate these instances directly after your test, it’s a relatively cheap way to get decent hardware and network and you can put some real good pressure on your server from different geographic regions.

Last but not least, out of curiosity: Why do you need to have 5000 viewers on a single server, why not use a CDN, or at least an Origin/Edge?

That depends on the CDN, @Paul Santos. Drop me an email; karel.boek@raskenlund.com, and I’ll get you some more info.

Karel going back to my question,is there a limit for RAM, that it is useless to have more than a certain amount because it will not change anything? I mean a server with 128 Giga of RAM and 256 Giga of Ram; will the 256 Giga be better or all considered the 128 Giga is enough?

Thanks

As for RAM, I’d say 128G is overkill. Typically I recommend 16-32GB, because default Java Heap size is 10G and you almost never need more than that. In your case, you may want to expand the Heap size, if you see from your load tests that the Java Heap is filling up. But I wouldn’t make it too large, because that’ll cause issues with the garbage collector. And as such, if you’re not doing anything but Wowza on that server, 32-64GB should be enough.

thank you very much.

Paul

Thank you Karel, I think I understand. This customer is streaming live for the last 5 years from my servers, so I think he is quite satisfied. But how much it would cost 5000 @1024 with CDN ?

Thanks

Paul