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: Graeme Fowler <graeme@xxxxxxxxxxx>
Date: Wed, 13 Sep 2006 16:04:45 +0100
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

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