Comments on Setting Up A High-Availability Load Balancer (With Failover and Session Support) With HAProxy/Heartbeat On Debian Lenny

Setting Up A High-Availability Load Balancer (With Failover and Session Support) With HAProxy/Heartbeat On Debian Lenny This article explains how to set up a two-node load balancer in an active/passive configuration with HAProxy and heartbeat on Debian Lenny. The load balancer sits between the user and two (or more) backend Apache web servers that hold the same content. Not only does the load balancer distribute the requests to the two backend Apache servers, it also checks the health of the backend servers. If one of them is down, all requests will automatically be redirected to the remaining backend server. In addition to that, the two load balancer nodes monitor each other using heartbeat, and if the master fails, the slave becomes the master, which means the users will not notice any disruption of the service. HAProxy is session-aware, which means you can use it with any web application that makes use of sessions (such as forums, shopping carts, etc.).

3 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: Igor Blanco

When you specify the LogFormat that should be used you use %>s but it seems to me that it should be just %s.

By: Loc

Hello.Many thanks for the tutorial it was very helpful. However, I can't find your eth0:0 with "ifconfig". I only see my virtual IP by "ip addr sh eth0". Hey, Can i set virtual IP With once Mac-Address. I need add static mac-address of virtual IP to Switch core. Thanks

By: felix barbadillo

Thanks for this tutorial, it has been a great help.