Wowza Community

Redirect RTMP connection to Another server when the reach connection limit

Hi

how can i redirect RTMP connections to another server when first server application reach the connection limit.

Connection limit has 5000.

thank you

Up

Hi Zoran

Thank you for your answer but i cant use LB module.

hmm understand.

I cant resolve this redirect problem on server side :frowning:

Hello,

Please take a look at this article as you might find it useful: How to stop load balancer redirects when edge server limit has been reached (ModuleLoadBalancerEdgeLimitConnections)

Zoran

In this case you will have to do a client-side solution to interrogate the server and get the connection count, either by using an HTTPProvider or a RTMP netconnection.call.

Based on the number of connections from the answer, you should decide to send a play request to that particular server or not.

Zoran

Hi,

You could do it using a custom Wowza module and use something like this: How to redirect an HTTP or RTSP session through server-side code

Zoran