Re: [lvs-users] ldirectord unbalance load distribution

To: " users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: [lvs-users] ldirectord unbalance load distribution
From: Graeme Fowler <graeme@xxxxxxxxxxx>
Date: Sun, 27 Sep 2009 16:09:35 +0100
On Sun, 2009-09-27 at 02:56 +0800, Liu Yan wrote:
> 2) Why the remote (Route) server is taking much more requests than the local
> one?

It isn't.

> 3) Why the local server has a large number of "InActConn"?

Because it should.

To explain: in DR mode the director does not see the entire TCP
transaction (it only sees one side, the client side) since the
realservers respond directly to the client.

When one of the realservers is "local" then full state can be kept, so
the director knows how many active (ie. open in TCP terms) and inactive
(ie. in TIME_WAIT or FIN_WAIT state) connections exist. This looks to
the inexperienced eye as a real imbalance in load distribution but it
may not be the case in reality.

You'd be much better off using the other statistical options to ipvsadm:

ipvsadm -Ln --stats
ipvsadm -Ln --rate

These will give you a much better view of how many actual connections
you're handling.


Please read the documentation before posting - it's available at: mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
or go to

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