Willy,

Exactly right, but it is a common misunderstanding.

Out of interest, How hard would it be to get a least connection
scheduler to take account of cumulated connections?
It would/might make it far more useful for HTTP.. Off the top of my
head I think least conns in  LVS is based on  cummulative for 60
seconds (which again causes a lot of confusion)....

Just had a quick look here:
http://www.austintek.com/LVS/LVS-HOWTO/HOWTO/LVS-HOWTO.ipvsadm.html
and to calculate active conns for LC:
active connections = ActConn * K + InActConn
Where K is between 32 and 50?

So probably way more confusing and yet most of our customers prefer
the LeastConnection handling for HTTP in LVS rather than HAProxy....

I also slightly think that they just instinctively like the bigger
numbers for connection count ;-).
http://blog.loadbalancer.org/look-why-cant-you-just-tell-me-how-many-people-are-connected-to-the-load-balancer/

Just thinking the new keepalive functionality will probably effect this as well?






















On 4 March 2014 14:59, Willy Tarreau <[email protected]> wrote:
> On Tue, Mar 04, 2014 at 08:27:03PM +0530, vijeesh vijayan wrote:
>> Thanks. please check my last reply
>>
>> >> 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?
>>
>> in this case , server x should be getting 5 folds of connections of y
>> ideally. but something is preventing this . Am i right? in our case x is
>> getting only 50 percent of y ( we are calculating the number of
>> connections/sec) . how do we know how many connections haproxy keep it open
>> for a particular server?
>
> No, unfortunately you definitely don't understand the difference between
> *concurrent* connections and *cumulated* connections. You're measuring
> the number of connections distributed over time. I'm talking about
> concurrent connections, which is what leastconn is about.
>
> Willy
>
>



-- 
Regards,

Malcolm Turnbull.

Loadbalancer.org Ltd.
Phone: +44 (0)870 443 8779
http://www.loadbalancer.org/

Reply via email to