
mag2589 at gmail
Jan 31, 2007, 12:16 PM
Views: 598
Permalink
|
|
Load Balanced web cluster not working correctly
|
|
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. _______________________________________________ LinuxVirtualServer.org mailing list - lvs-users[at]LinuxVirtualServer.org Send requests to lvs-users-request[at]LinuxVirtualServer.org or go to http://www.in-addr.de/mailman/listinfo/lvs-users
|