[Red5] red5 behind a load balancer

Walter Tak walter at waltertak.com
Thu Jan 1 08:31:05 PST 2009


Enter the ip of rtmp1.example.com in red5.properties and Red5 will bind/listen to that IP and will answer all incoming requests.

Red5 does not look at hostnames or any virtual hosts like a webserver can and will do.

I have a similar setup as you, a round robin dns (with a check each 2 minutes to verify the servers are still responding on the rtmp (1935) port) and that works fine.

Make sure you have some dynamic check running or else , in case of a failure of one of your servers, about 50% of all incoming requests will go to the broken server.

I have good experiences with this external DNS failover monitoring company ; http://www.dnsmadeeasy.com/s0306/prod/dnsfosm.html

Best practise is to register a new domain at that company, then add a hostname in their webbased-application and make it failover. You can specify an url
that they will check every 2-3 minutes ; if the url does not respond then they will remove that IP/hostname from the round robin DNS effectively creating an
"active failover round robin dns solution". Costs are reasonable ; for 60 usd you can monitor 3 "clusters" of 5 different servers each. For a few extra usd you can
add more "clusters".

It's way cheaper than having your own hardware based loadbalancer and this solution is also geographically independent ; if you'd have 2 servers , one in europe and one
in usa it will still do nice "plain and simple" loadbalancing.

If other ppl have also good suggestions for failover and loadbalancing setups don't hesitate to discuss them here on the list.

Regards,
Walter


  ----- Original Message ----- 
  From: Daniel Rossi 
  To: red5 at osflash.org 
  Sent: Thursday, 01 January 2009 11:26
  Subject: Re: [Red5] red5 behind a load balancer


  Can it not switch to the server public ip address, a special c class ip set on the public nic which is what we have, or just setup the cnames to the public ip of each machine and it will load it fine. Just leave red5.properties to 0.0.0.0 or bind it to the ip address the lb needs if thats what you want. 


  On 01/01/2009, at 12:20 PM, jj fadd wrote:


          Hello and Happy New Year!

          I'd like to use round robin dns to load balance across 2 red5 servers, each running off of different servers (running under supervise).

          the red5.properties file is where I specify the host/ip address but the but that ip/hostname is different than the one used in the load balancer.  It seems that red5 only takes connections to those attempting to connect to the ip/hostname specified(?)

          For example, a web user comes across the flash application and they make a request to rtmp.example.com.  if I have the load balancer respond to rtmp.example.com and send the requests to one of rtmp1.example.com or rtmp2.example.com cnames, will each server respond to the requests properly if the end user is requesting "rtmp.example.com" when the red5.properties is set up with a different hostname or ip address? 

    _______________________________________________
    Red5 mailing list
    Red5 at osflash.org
    http://osflash.org/mailman/listinfo/red5_osflash.org





------------------------------------------------------------------------------


  _______________________________________________
  Red5 mailing list
  Red5 at osflash.org
  http://osflash.org/mailman/listinfo/red5_osflash.org



------------------------------------------------------------------------------


  No virus found in this incoming message.
  Checked by AVG. 
  Version: 7.5.552 / Virus Database: 270.10.1/1870 - Release Date: 31-12-08 08:44
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://osflash.org/pipermail/red5_osflash.org/attachments/20090101/43c415a3/attachment.html>


More information about the Red5 mailing list