]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MEDIUM] stats: disable complex socket reservation for stats socket
authorWilly Tarreau <w@1wt.eu>
Wed, 7 Sep 2011 10:13:34 +0000 (12:13 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 7 Sep 2011 16:05:48 +0000 (18:05 +0200)
commitc2adf8b9062dade3a7d92d9edce19515f59fb1f0
tree3929dee91842d1ba0e6f33d2e80b7b7bef051fd2
parent46fa8355c01037d36598b068fcbb6281928cc347
[MEDIUM] stats: disable complex socket reservation for stats socket

The way the unix socket is initialized is awkward. Some of the settings are put
in the sockets itself, other ones in the backend. And more importantly the
global.maxsock value is adjusted so that the stats socket evades the global
maxconn value. This complexifies maxsock computations for nothing, since the
stats socket is not supposed to receive hundreds of concurrent connections when
the global maxconn is very low. What is needed however is to ensure that there
are always connections left for the stats socket even when traffic sockets are
saturated, but this guarantee is not offered anymore by current code.

So as of now, the stats socket is subject to the global maxconn limitation just
as any other socket until a reservation mechanism is implemented.
src/dumpstats.c
src/haproxy.c