LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: Connections not being balanced to servers

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: Connections not being balanced to servers
From: Tom <bigendian+lvs@xxxxxxxxx>
Date: Wed, 13 Sep 2006 09:31:17 -0700
You nailed it.  I misunderstood the purpose of the persistence_timeout
parameter.

And thanks for the 100/100 wieght tip.  I'll use it.

Thanks again!


On 9/13/06, Graeme Fowler <graeme@xxxxxxxxxxx> wrote:

Hi

On 13/09/2006 07:04, Tom wrote:
> I've been testing a new installation of LVS + keepalived and am having
some
> trouble.  Things work to a degree, but I notice that connections to the
VIP
> always stick with a single real server instead of being distributed
across
> all nodes in the real server list.

You're using persistence. That entails connections being sent to server
'x' from client 'y' until no connections from client 'y' have been
handled within the persistence timeout.

For testing purposes, change your scheduler back to 'rr' and comment out
the persistence_timeout line in your virtual_server definition.

Re-test from a single (or multiple) client(s) and see what that gives you.

Also, a recommendation: change your weights up to 100 for your
realservers. 100/100 equates to 1/1 but gives you more flexibility if
you put in a nominally half-spec server (or twice-spec, and so on).

Graeme
_______________________________________________
LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
or go to http://www.in-addr.de/mailman/listinfo/lvs-users


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