]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: adjust the maxaccept per listener depending on the number of processes
authorWilly Tarreau <w@1wt.eu>
Mon, 19 Nov 2012 11:39:59 +0000 (12:39 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 19 Nov 2012 11:39:59 +0000 (12:39 +0100)
commit16a2147dfe52a817eedf9e8cc6c33a28b3b103d2
tree745769db16d662dd427d9e0420bc890aa7283490
parent37994f034c0c3153fd652f67a55c7ee68a665890
MEDIUM: adjust the maxaccept per listener depending on the number of processes

global.tune.maxaccept was used for all listeners. This becomes really not
convenient when some listeners are bound to a single process and other ones
are bound to many processes.

Now we change the principle : we count the number of processes a listener
is bound to, and apply the maxaccept either entirely if there is a single
process, or divided by twice the number of processes in order to maintain
fairness.

The default limit has also been increased from 32 to 64 as it appeared that
on small machines, 32 was too low to achieve high connection rates.
doc/configuration.txt
include/types/listener.h
src/cfgparse.c
src/haproxy.c
src/listener.c