LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

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

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: [lvs-users] load balancing works... kinda
From: "Charlie Williams" <cwilliams.work@xxxxxxxxx>
Date: Wed, 13 Feb 2008 16:13:31 -0500
so probably not news to anyone that the problem was me having stared at this
and a bazillion terminal windows for way too long today. In the lo interface
of the 3rd machine I had a loopback set to the rip and not the vip thanks
for all your help.

On Feb 13, 2008 3:39 PM, Charlie Williams <cwilliams.work@xxxxxxxxx> wrote:

> 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@xxxxxxxxxxx> 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@xxxxxxxxxxxxxxxxxxxxxx
> > Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
> > or go to http://lists.graemef.net/mailman/listinfo/lvs-users
> >
>
>

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