LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: [lvs-users] "wrong" redirecting by the director

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: [lvs-users] "wrong" redirecting by the director
From: Graeme Fowler <graeme@xxxxxxxxxxx>
Date: Tue, 17 Jan 2012 10:39:37 +0000
On Tue, 2012-01-17 at 11:29 +0100, Peter Stimpel wrote:
> There is no NAT involved between Loadbalancer and Clients.

Good :)

> Yep, this is exactly what happens, the connections stay "half-open", and
> therefore there is no add on the connection count. This is why I was
> aksing for a way to include the inactive connections in the directors
> decision.

I would try changing the scheduler to either Round Robin (rr) or
Weighted Round Robin (wrr) as you're being given the default, Weighted
Least Connections (wlc).

The basis of rr is exactly as it sounds, it distributes evenly in a
1-2-3-1-2-3-1-2-3 pattern. wlc does the same but includes the
realserver's weight in the calculation; if they're all even then it is
identical to rr.

You could try the more complex scheduler such as sed or nq, but I would
suggest that rr would be a good start especially as you start "clean"
every morning.

Graeme


_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

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>