LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 04-10-2009, 10:42 AM   #1
HelpMe2877
Member
 
Registered: May 2008
Posts: 50

Rep: Reputation: 15
Load Balancing using heartbeat... won't communicate with second L.B.


Hello,

OK, here is my setup
I am running 2 load balancers with a bare CentOS 5.3 install with heartbeat. We are trying to balance 2 windows 2008 web servers with IIS. (but the problem is with the load balancers)

here is the config files for Load Balancer1

Quote:
DEVICE=eth0
BOOTPROTO=none

BROADCAST=192.168.4.255
HWADDR=**:**:**:**:**:**
IPADDR=192.168.4.231
NETMASK=255.255.255.0
NETWORK=192.168.4.0
GATEWAY=192.168.4.1

ONBOOT=yes
TYPE=Ethernet
USERCTL=no
IPV6INIT=no
PEERDNS=yes

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

DEVICE=eth0:0
BOOTPROTO=none

BROADCAST=192.168.4.255
IPADDR=192.168.4.232
NETMASK=255.255.255.0
NETWORK=192.168.4.0
GATEWAY=192.168.4.1

ONBOOT=yes
TYPE=Ethernet
USERCTL=no
IPV6INIT=no
PEERDNS=yes
ONPARENT=yes

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

DEVICE=eth0:1
BOOTPROTO=none

BROADCAST=192.168.4.255
IPADDR=192.168.4.233
NETMASK=255.255.255.0
NETWORK=192.168.4.0
GATEWAY=192.168.4.1

ONBOOT=yes
TYPE=Ethernet
USERCTL=no
IPV6INIT=no
PEERDNS=yes
ONPARENT=yes
...and the same applies with Load Balancer2 except different IP addresses (same network and subnet though)

There is a python script that should run on LB2 to try to connect to LB1 every 2 seconds and runs continuously until it will not communicate with LB1 for so many seconds then fails over to LB2 and changes IP's to match LB1's originals.

The output should say "Trying to Reconnect. Attempt number 1."
and that would repeat to number 2,3,4 and so on.

I am able to ping the boxes from one another but LB2 doesn't even try to connect to LB1, it fails over immediately.

Quote:
[root@LB2 ~]# python failover_prod.py
Thu Apr 9 14:03:13 2009 Failover Script Started.
Thu Apr 9 14:03:13 2009 Heartbeat Check Started.
Thu Apr 9 14:03:16 2009 Becoming Primary Load Balancer for 192.168.4.231
111
111
111
111
111
222
222
222
222
222
333
333
333
333
333
Thu Apr 9 14:03:26 2009 Failover Complete.
Is the problem with the systems? Am I missing a package for heartbeat? Is heartbeat even the problem? Any ideas would be much appreciated.


Thank you very much for looking!
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
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: Setting Up A High-Availability Load Balancer With HAProxy/Heartbeat On Fedora 8 LXer Syndicated Linux News 1 03-10-2008 07:29 AM
load balancing cirogl Linux - Enterprise 3 05-25-2006 04:46 PM
How to do load balancing tkt Linux - Networking 0 04-27-2005 01:22 AM
Load Balancing otisthegbs Linux - Networking 4 02-10-2005 02:16 PM


All times are GMT -5. The time now is 06:26 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration