I’m trying to use load balancing running on EC2. My setup consists of a monthly license working as a load balancer, plus auto-scaled DevPay instances for supplemental recording capacity. That works fine.
I’m currently setting up the redirect and running into issues and I haven’t been able to figure out what’s wrong. I’m not a Flash or Java developer, so please bear with me.
If I enter http://loadbalancer:1935/loadbalancer?serverInfoXML into my browser, I get a healthy response:
<LoadBalancerServerInfo>
<LoadBalancerServer>
<connectCount>0</connectCount>
<status>RUNNING</status>
<redirectCount>0</redirectCount>
<lastMessage>1 second 767 milliseconds</lastMessage>
<redirect>ec2-198-51-100-1.compute-1.amazonaws.com</redirect>
<serverId>d2b12e5f-f324-42cb-a2fc-c063ce3ae51d</serverId>
</LoadBalancerServer>
</LoadBalancerServerInfo>
http://loadbalancer:1935/loadbalancer similarly returns:
redirect=ec2-198-51-100-1.compute-1.amazonaws.com
This shows the load balancer instance adding itself to the pool. If I start DevPay instances they show up here fine, too. (I copied the EC2 jar from the DevPay AMI to make the load balancer work with EC2 variables.)
I need to get Netconnection redirect working according to our Flash dev.
The Flash tool included in the zip for RTMP redirect fails:
redirect.html, entering: rtmp://loadbalancer:1935/redirect
connect: rtmp://loadbalancer:1935/redirect
ncOnStatus: NetConnection.Connect.Failed
The HTTP redirect is working:
httpgetredirect.html, entering: http://loadbalancer:1935/redirect
get redirect: http://loadbalancer:1935/loadbalancer
redirect: ec2-198-51-100-1.compute-1.amazonaws.com
connect: ec2-198-51-100-1.compute-1.amazonaws.com
I’ve followed the instructions in the README.html. I left the redirectPort and redirectScheme properties commented out. I changed the value of the redirectAppName to the name of our application.
I don’t know what else to do. Could someone please point me in the right direction?