On Fri, Jun 17, 2011 at 2:32 PM, Willy Tarreau <w...@1wt.eu> wrote:

> The round robin of the leastconn will not apply weigths, it's only
> used between servers which have the exact same amount of connections
> in order to avoid the common syndrom of the low load always hitting
> the same server because there's either 0 or 1 connection.
>

Ahh, that's the piece I was missing, and hadn't found yet in the code.

> Also there are situations where you really want to ensure that only
> round robin will be used. For instance, if you place your visitors
> on servers and then do cookie-based persistence, you absolutely want
> to ensure the smoothest possible distribution, which round robin
> achieves. If you'd do leastconn on that, sometimes you'd place a
> user on an apparently less loaded server at the moment you have to
> select the server, resulting in an imbalance between all servers.
>

Make perfect sense, just hadn't thought it through enough.

Thank!

Reply via email to