I am trying to setup wowza cluster with multiple origin servers. For publishing a stream any one of origin server is being picked up and stream is sent to it from flash client (also i am storing the mapping of stream id vs origin ip in my db) . Now on the other end (consumption of stream) the video player knows ip of edge server (from load balancer) and appname (say "EdgeApp") but the "EdgeApp" doesnt know at which origin the video stream is .
I dont want to use the timeout approach (ie configuring origin ip on edge as [origin-ip1] | [origin-ip2] | ...)
i want to create a custom module on "EdgeApp" which can go and read the db for origin ip and get the required stream from that origin server. Any pointers regarding which classes should i start looking at ?