I’ve installed and setup mediasoup v3 and signaling app on my server with 24gig ram and 10 core cpu.In my application I’ve setup 1 broadcaster with mic,screen sharing and webcam and other users are allow to speak only for 30 seconds to speak and pause user producer.with 100 users and 1 broadcaster (webinar) it seems fine on the server(low cpu usage). but as user grows app starts to lagging and delay in videos.I’m planning to conduct a webinar with 500 users and one broadcaster as mentioned.Is it possible with my current server config? and how to reduce lagging.
I’m assuming you’ve setup mediasoup demo. The demo was made to be a video conferencing app demo, not a broadcast app. This means that each participant receives many video and audio stream which requires bandwidth and CPU in client and server side. I’m afraid you need more than the demo setup to make it happen.
Its not from the demo app,Created specially for webinar only with own signaling server,broacaster sending 2-4 Mbps video/audio streams to server though my concern is not about the network bandwidth(easily increase bandwidth).Problem is lagging with increasing no.s of user.
Are you sure it is not about bandwidth? After all, 2 Mbps x 500 users is a pretty good traffic of 1 Gbps.
If you can’t see CPU hitting the ceiling server-side, note that if all users are hitting the same Worker it might not use all CPUs, the problem might be client side jitter, … due to bandwidth. My suggestion would be to upload client metrics and make sure server side has no CPU or bandwidth bottleneck.
|Publishers||Viewers||Weight Required||Consumer Required|
Enjoy that one! Yes 8-cores will do 1x500
1 publisher servers
7 consumer servers
(servers in this case be one machine, with 8 workers I assume both audio/video will be used for producers)
The bandwidth requirements for this, would be
50KB/s(total 50MB/s) → 140KB/s (total 140MB/s)
This should saturate an entire GB network, but if a 450mbps nic, 50KB/s each be fine.
MUST BE UNLIMITED BANDWIDTH OR SHORT SESSIONS TEREBYTES OF DATA USED IN HOURS!!!
Thanks Guys, I’ll figure out something sure!