You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to read a stream from two webrtc servers that are being published to via RTSP by the same device on another remote machine. This is to help spread the load across the two web servers serving the webrtc stream.
If I try using roundrobin I get stuck in a refresh loop because the request is trying to find the feed. I can get it working if I use a sticky session in haproxy, but the moment it tries to roundrobin with a pool it gets weird.
What configuration is needed so that I can use haproxy across two webrtc servers?
Thanks in advance
Aug 07 19:23:12 vm-machine mediamtx[407692]: 2024/08/07 19:23:12 INF [WebRTC] [session cb9bf74d] created by x.x.x.x:57190
Aug 07 19:23:13 vm-machine mediamtx[407692]: 2024/08/07 19:23:13 INF [WebRTC] [session cb9bf74d] closed: terminated
Aug 07 19:23:15 vm-machine mediamtx[407692]: 2024/08/07 19:23:15 INF [WebRTC] [session 91c0af50] created by x.x.x.x:57216
Aug 07 19:23:15 vm-machine mediamtx[407692]: 2024/08/07 19:23:15 INF [WebRTC] [session 91c0af50] closed: terminated
Aug 07 19:23:17 vm-machine mediamtx[407692]: 2024/08/07 19:23:17 INF [WebRTC] [session 77b3c09c] created by x.x.x.x:58606
Aug 07 19:23:17 vm-machine mediamtx[407692]: 2024/08/07 19:23:17 INF [WebRTC] [session 77b3c09c] closed: terminated
Aug 07 19:23:20 vm-machine mediamtx[407692]: 2024/08/07 19:23:20 INF [WebRTC] [session 17006337] created by x.x.x.x:58622
Aug 07 19:23:20 vm-machine mediamtx[407692]: 2024/08/07 19:23:20 INF [WebRTC] [session 17006337] closed: terminated
Aug 07 19:23:22 vm-machine mediamtx[407692]: 2024/08/07 19:23:22 INF [WebRTC] [session 1993fdc6] created by x.x.x.x:58650
Aug 07 19:23:22 vm-machine mediamtx[407692]: 2024/08/07 19:23:22 INF [WebRTC] [session 1993fdc6] closed: terminated
Aug 07 19:23:25 vm-machine mediamtx[407692]: 2024/08/07 19:23:25 INF [WebRTC] [session dde50c74] created by x.x.x.x:58672
Aug 07 19:23:25 vm-machine mediamtx[407692]: 2024/08/07 19:23:25 INF [WebRTC] [session dde50c74] closed: terminated
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Question
I would like to read a stream from two webrtc servers that are being published to via RTSP by the same device on another remote machine. This is to help spread the load across the two web servers serving the webrtc stream.
If I try using
roundrobin
I get stuck in a refresh loop because the request is trying to find the feed. I can get it working if I use a sticky session in haproxy, but the moment it tries to roundrobin with a pool it gets weird.What configuration is needed so that I can use haproxy across two webrtc servers?
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions