I’m not feeling too optimistic about this, but I hope to gain some more insight: My question is if it is possible to redirect a client to a different server. The use case I have in mind is: A client streams to a load balancer’s url -> load balancer picks some nginx server A by round robin (or randomly. Doesn’t matter much) -> nginx server A has ways of finding out information on the entire cluster (looking into erlang’s BEAM or something similar for this) and determines it is too loaded, but nginx server B is the least loaded, so it sends a redirect notice back to the client -> client receives the 30X, but most importantly, their stream gets published to server B instead. Assume we don’t have much control over the client… it could be someone using OBS, or whatever other software.
Is this possible using the nginx rtmp module (or additional modules, if necessary)?