LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Load Balanced web cluster not working correctly

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: Load Balanced web cluster not working correctly
From: "Mag2589 Walla" <mag2589@xxxxxxxxx>
Date: Wed, 31 Jan 2007 15:16:16 -0500
I'm a new when it comes to LVS. I recently set up a load balanced
cluster with 2 real web servers and 1 load balancer. I used ldirectord
to configure ipvsadm on the load balancer. To get the load balancer to
listen on the virtual port I went into the console and typed
"eth0:0 192.168.0.114 netmask 255.255.255.0 broadcast 192.168.0.114"
To then get the real servers to listen on this virtual IP i had to
type the same thing into their console also. Is this correct? My
problem comes in when a user sends a web request and it gets mapped to
one of the real servers and not to the load balancer. If the request
does go to the load balancer the cluster works. Did I do something
wrong? Half the time it goes straight to the load balancer and half
the time it goes straight to one of the real servers.

<Prev in Thread] Current Thread [Next in Thread>