Dear Colleagues,

The dynamic limit is probably one of the darker sides of Haproxy
configuration. One of the best explanations I've found is
https://www.mail-archive.com/[email protected]/msg04782.html
but still I'm missing some points.

Consider the following configuration:

====================
frontend bar
        maxconn         10000
        default_backend foo

backend foo
    server server1 server1:9999 minconn 10 maxconn 100 weight 100 
    server server2 server2:9999 minconn 10 maxconn 100 weight 100 
====================

This configuration will set the automatic implicit fullconn=1000 to the
backend "foo", correct?

"maxconn 100" is still a hard limit, correct?

So, when there happen to be 500 connections to the backend "foo", 200
of them will be served by server1 and server2, what will happen to the
other 300 connections?

The same can be asked about the example from the Haproxy documentation
with the explicit fullconn:

====================
backend dynamic
        fullconn   10000
        server     srv1   dyn1:80 minconn 100 maxconn 1000
        server     srv2   dyn2:80 minconn 100 maxconn 1000
====================

"maxconn 1000" is still a hard limit, correct?

When 4000 connections come to this backend, srv1 and srv2 will serve 2000
of them (each reaching its hard limit at "maxconn=1000"), what will happen
to the other 2000 ?

-- 
Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
2:5005/49@fidonet http://vas.tomsk.ru/

Reply via email to