On 06 марта 2014 г., at 19:29, Dmitry Sivachenko <trtrmi...@gmail.com> wrote:

> Hello!
> 
> I am using haproxy-1.5.22.
> 
> In a single backend I have servers with different weight configured: 16, 24, 
> 32 (proportional to the number of CPU cores).
> Most of the time they respond very fast.
> 
> When I use balance leastconn, I see in the stats web interface that they all 
> receive approximately equal number of connections (Sessions->Total).
> Shouldn't leastconn algorithm also honor weights of each backend (to pick a 
> backend with minimal Connections/weight value)?
> 
> Thanks.


I mean that with balance leastconn, I expect the following behavior:
-- In ideal situation, when all backends respond equally fast, it should be 
effectively like balance roundrobin *honoring specified weights*;
-- When one of the backends becomes slow for some reason, it should get less 
request based on the number of active connections

Now it behaves almost this way but without  "honoring specified weights".



Reply via email to