Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 17th October 2010, 19:24
vikas027 vikas027 is offline
Junior Member
Join Date: Oct 2010
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy A High-Availability Load Balancer With HAProxy/Heartbeat on RHEL 5.4

Dear All,

I am trying to setup a High-Availability HTTP Load Balancer With HAProxy & Heartbeat using the below links. I have all RHEL 5.4 servers hosted on VMWare.


This is the scenario, as given in the links as wells as my setup.
Shared IP:

Load Balancer 1
Hostname: lb1.example.com

Load Balancer 2
Hostname: lb2.example.com

Web Server 1
Hostname: http1.example.com

Web Server 2
Hostname: http2.example.com

I have followed all the steps mentioned in the links religiously except the 2.2 here, in which it is asking to configure the vhosts. I could not really understand :scratch:, what is to be placed in /etc/httpd/conf.d/vhosts.conf file and in which Web Server.

Due to this step only, I think I am failing in Failover test given in Point 4.1 here. I am able to open the webpage by which gives the content of Web Server 1 (http1.example.com). But, when I try to shutdown the http service (to check failover), it does not shows the contents of Web Server 2 (http2.example.com)

Although, I am able to succeed in Failover Test 4.2, in which shared IP switches when I try to start/stop the any of the Load Balancers.

Waiting for your precious answers. Thanks in advance.

Best Regards,

Last edited by vikas027; 17th October 2010 at 19:28. Reason: Signature
Reply With Quote
Sponsored Links
Old 17th October 2010, 20:41
vikas027 vikas027 is offline
Junior Member
Join Date: Oct 2010
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts

Hello People,

I have solved it.

I had mistakenly used IP in /etc/httpd/conf/httpd.conf of Web Server 2 (http2.example.com). I should have used
==> VIKAS <==



* RHCE - 805009991336981
* Registered Linux User - 484205
* Sun Certified System Administrator for Solaris 10 OS
Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
High Availability (Load Balancing) behind a firewall geek.de.nz Server Operation 7 4th January 2011 14:58
HA Load Balancer with HAProxy/Heartbeat jbimmerle Installation/Configuration 2 8th September 2009 19:26
High Availability Cluster Using Debian Lenny jbimmerle Installation/Configuration 0 4th September 2009 04:01
High Availability and Load Balanced MySQL cluster EricTRA HOWTO-Related Questions 1 4th March 2009 14:27
Howto suggestion suse PhP ver 4 + Ver 5 wwparrish Suggest HOWTO 11 7th August 2006 14:29

All times are GMT +2. The time now is 04:37.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.