We are running our servers on AWS EC2 instances. The servers have to provide HTTP on port 80 and RTMP (TCP) on port 1935.
Running a single instance works fine. But as soon as I use Elastic Load Balancing to balance the load between two EC2 instances the RTMP (TCP) connection gets lost after a minute. Even though our application should tolerate disconncts it does not right now.
Using haproxy to balance the load we do not experience these early disconncts. Elastic Load Balancer is attractive to us because of the auto-scaling feature though.
Any suggestions why this disconnects happen when we're using AWS Elastic Load Balancer?