Connections not being balanced to servers

Graeme Fowler graeme at graemef.net
Wed Sep 13 16:04:45 BST 2006


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

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

More information about the lvs-users mailing list