Load Balanced web cluster not working correctly

Joseph Mack NA3T jmack at wm7d.net
Thu Feb 1 06:46:38 GMT 2007


On Wed, 31 Jan 2007, Mag2589 Walla wrote:

> 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"

I would be surprised if ethernet aliases work anymore.

> 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.

that's how it's supposed to work.


> If the request
> does go to the load balancer the cluster works.

the director is just a router with funny rules. The request 
is routed through the director to the realservers




> 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.

have you handled the arp problem?

Joe

-- 
Joseph Mack NA3T EME(B,D), FM05lw North Carolina
jmack (at) wm7d (dot) net - azimuthal equidistant map
generator at http://www.wm7d.net/azproj.shtml
Homepage http://www.austintek.com/ It's GNU/Linux!

Search lvs-users Archives
Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort

More information about the lvs-users mailing list