LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-15-2010, 03:10 PM   #1
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Ubuntu, Debian, OS X
Posts: 1,305

Rep: Reputation: 107Reputation: 107
Question High-Availability HTTP 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.

http://www.howtoforge.com/high-avail...rtbeat-fedora8
http://www.howtoforge.com/high-avail...eat-fedora8-p2

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

Load Balancer 1
Hostname: lb1.example.com
IP: 192.168.0.110

Load Balancer 2
Hostname: lb2.example.com
IP: 192.168.0.111

Web Server 1
Hostname: http1.example.com
IP: 192.168.0.112

Web Server 2
Hostname: http2.example.com
IP: 192.168.0.113


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 , 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 http://192.168.0.120/ 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 192.168.0.120 switches when I try to start/stop the any of the Load Balancers.

Waiting for your precious answers. Thanks in advance.


Last edited by vikas027; 10-17-2010 at 11:23 AM. Reason: Highlighting few things
 
Old 10-17-2010, 12:44 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
step 2.2 is nothing more than housekeeping for log messages, it won't affect the actual behaviour of the system at all.

If you want to troubleshoot why it's not working, you need to be looking at the logs on the LB machines, that's what they're there for. There's no way we can read a config guide and tell you what you've done wrong from that alone.
 
Old 10-17-2010, 12:38 PM   #3
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Ubuntu, Debian, OS X
Posts: 1,305

Original Poster
Rep: Reputation: 107Reputation: 107
Talking

Quote:
Originally Posted by acid_kewpie View Post
step 2.2 is nothing more than housekeeping for log messages, it won't affect the actual behaviour of the system at all.

If you want to troubleshoot why it's not working, you need to be looking at the logs on the LB machines, that's what they're there for. There's no way we can read a config guide and tell you what you've done wrong from that alone.
Hi Acid,

I had given the guide links so that any other LQ member who is trying a similar setup can get help from this thread.

Logs could not help much. However, I am glad that I at last figured out the problem.
I had mistakenly used 192.168.0.112 IP in /etc/httpd/conf/httpd.conf of Web Server 2 (http2.example.com). I should have used 192.168.0.113

Thanks Acid for your time and reply. I am happy man now. Another good thing I learnt in Linux. I am marking this thread as Solved.

Last edited by vikas027; 10-17-2010 at 12:42 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: High-Availability Load Balancer With HAProxy/Heartbeat On Debian Lenny LXer Syndicated Linux News 0 07-14-2009 05:20 PM
LXer: High-Availability Load Balancer With HAProxy/Keepalived On Debian Lenny LXer Syndicated Linux News 0 06-16-2009 12:11 PM
LXer: Set Up A High-Availability Load Balancer With Perlbal/Heartbeat On Debian Etch LXer Syndicated Linux News 0 01-13-2009 04:10 PM
LXer: High-Availability Load Balancer With HAProxy/Wackamole/Spread On Debian Etch LXer Syndicated Linux News 0 01-06-2009 02:30 PM
LXer: Setting Up A High-Availability Load Balancer With HAProxy/Heartbeat On Fedora 8 LXer Syndicated Linux News 1 03-10-2008 07:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration