This distribution happens only when server x and y has same number of open connections?
On Tue, Mar 4, 2014 at 3:10 PM, Willy Tarreau <w...@1wt.eu> wrote: > 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 > > -- ========================= Vijeesh K "The temptation to quit will be greatest just before you are about to succeed"