Re: balance leastconn does not honor weight?

2014-03-07 Thread Dmitry Sivachenko
On 07 марта 2014 г., at 14:53, Baptiste wrote: > Hi All, > > "When next request(s) arrive, server must to read missing pages back > from disk. It takes time. Server becomes very slow for some time. > I don't want it to be flooded by requests until it starts to respond > fast again. It looks

Re: balance leastconn does not honor weight?

2014-03-07 Thread Baptiste
Hi All, "When next request(s) arrive, server must to read missing pages back from disk. It takes time. Server becomes very slow for some time. I don't want it to be flooded by requests until it starts to respond fast again. It looks like leastconn would fit this situation." If one server is an

Re: balance leastconn does not honor weight?

2014-03-07 Thread David Birdsong
On Fri, Mar 7, 2014 at 1:08 AM, Dmitry Sivachenko wrote: > > On 07 марта 2014 г., at 13:02, Willy Tarreau wrote: > > > On Fri, Mar 07, 2014 at 01:01:04PM +0400, Dmitry Sivachenko wrote: > Now it behaves almost this way but without "honoring specified > weights". > >>> > >>> We cannot honnor

Re: balance leastconn does not honor weight?

2014-03-07 Thread Dmitry Sivachenko
On 07 марта 2014 г., at 13:02, Willy Tarreau wrote: > On Fri, Mar 07, 2014 at 01:01:04PM +0400, Dmitry Sivachenko wrote: Now it behaves almost this way but without "honoring specified weights". >>> >>> We cannot honnor both at the same time. Most products I've tested don't >>> *even* do t

Re: balance leastconn does not honor weight?

2014-03-07 Thread Willy Tarreau
On Fri, Mar 07, 2014 at 01:01:04PM +0400, Dmitry Sivachenko wrote: > >> Now it behaves almost this way but without "honoring specified weights". > > > > We cannot honnor both at the same time. Most products I've tested don't > > *even* do the round robin on equal connection counts while we do. I'

Re: balance leastconn does not honor weight?

2014-03-07 Thread Dmitry Sivachenko
On 07 марта 2014 г., at 12:25, Willy Tarreau wrote: > Hi Dmitry, > > On Fri, Mar 07, 2014 at 12:16:32PM +0400, Dmitry Sivachenko wrote: >> >> On 06 ?? 2014 ??., at 19:29, Dmitry Sivachenko >> wrote: >> >>> Hello! >>> >>> I am using haproxy-1.5.22. >>> >>> In a single backend I hav

Re: balance leastconn does not honor weight?

2014-03-07 Thread Willy Tarreau
Hi Dmitry, On Fri, Mar 07, 2014 at 12:16:32PM +0400, Dmitry Sivachenko wrote: > > On 06 ?? 2014 ??., at 19:29, Dmitry Sivachenko > wrote: > > > Hello! > > > > I am using haproxy-1.5.22. > > > > In a single backend I have servers with different weight configured: 16, > > 24, 32 (prop

Re: balance leastconn does not honor weight?

2014-03-07 Thread Dmitry Sivachenko
On 06 марта 2014 г., at 19:29, Dmitry Sivachenko 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 l

balance leastconn does not honor weight?

2014-03-06 Thread Dmitry Sivachenko
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 approximate