[lvs-users] load balancing works... kinda

Charlie Williams cwilliams.work at gmail.com
Wed Feb 13 20:39:00 GMT 2008


well I think my interfaces are setup wrong, because while trying to test
this command occasionally I was able to hit my original web server (still
running on loadb1) but not actually in the ldirectord.cf file or listing
when I hit ipvsadm -Ln so I think I must have configured the race condition
somehow.

Can you explain which interfaces are supposed to be setup how?

I have a VIP loopback setup on all machines currently and thats obviously
not right ;)

on each machine I have
/etc/sysconfig/network with the gateway set
/etc/sysconfig/network-scripts/ifcfg-lo:0 with the virtual ip configured
/etc/sysconfig/network-scripts/ifcfg-eth0 with the real ip and gateway set

-Charlie

On Feb 13, 2008 3:14 PM, Graeme Fowler <graeme at graemef.net> wrote:

> On Wed, 2008-02-13 at 15:07 -0500, Charlie Williams wrote:
> > yes I setup the 3rd machine with all the same interfaces as the first
> two,
> > the loopback for the vip is there.
>
> Time to break out good ole trusty tcpdump, then.
>
> On the 3rd server, assuming eth0 is the interface that the client
> requests will arrive on and that $VIP and $RIP are known :) do:
>
> /usr/sbin/tcpdump -qnieth0 host $VIP or host $RIP
>
> Make a client request. See if the traffic arrives, if it gets handled,
> whether the machine responds - that sort of thing.
>
> You *should* see:
>
> SYN, ACK, SYN/ACK, RST, FIN (more or less in that order) from the
> director to the RIP as ldirectord does its thing.
>
> The same from the client. Although, obviously, you probably won't.
>
> Graeme
>
>
> _______________________________________________
> LinuxVirtualServer.org mailing list - lvs-users at LinuxVirtualServer.org
> Send requests to lvs-users-request at LinuxVirtualServer.org
> or go to http://lists.graemef.net/mailman/listinfo/lvs-users
>

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

More information about the lvs-users mailing list