arut / nginx-rtmp-module

NGINX-based Media Streaming Server
http://nginx-rtmp.blogspot.com
BSD 2-Clause "Simplified" License
13.47k stars 3.52k forks source link

How to Setup Nginx RTMP With Load Balancing In Ubuntu #1449

Open lamadya opened 5 years ago

lamadya commented 5 years ago

Hi I have more than one server Main server, secondary server and additional server I want to create load balancing to broadcast so that the load is not on the main server How's that

Thank you

maxlinux2000 commented 4 years ago

UP!!

Lax commented 4 years ago

I suggest you push only to the main server, then pull rtmp stream from main server. for HLS stream use http proxy_pass & proxy_cache.

ERRLKing commented 4 years ago

@Lax is there any way you can provide an example nginx configuration with proxy_pass and proxy_cache that works for hls with support for low-latency chunk handling? I have been struggling to get this to work.