On Tue, Mar 04, 2014 at 02:20:32PM +0530, vijeesh vijayan wrote:
> Thanks. Am talking about the weights , if one server (x) assigned with
> weight 125 and other server (y) with weight 12 ( added twice in the file) ,
> we see x is getting half of the traffic compared to y. that means weigt has
> no affects here?

Yes it does affect it. In leastconn, the weight affects the number of
concurrent connections. So if a server has a weight of 125 and another
one of 2, then haproxy will ensure that the first one has 125/127
connections while the second has 2/127 connections. But again, these
are *concurrent* connections, not cumulated connections.

Willy


Reply via email to