]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: Add ability for agent-check to set server maxconn
authorNenad Merdanovic <nmerdan@anine.io>
Sun, 24 Apr 2016 21:10:06 +0000 (23:10 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 25 Apr 2016 15:23:50 +0000 (17:23 +0200)
commit174dd37d88341649d93ca78e0431d6f37c97bf42
treee69577371ff64e76fde77a74cd6343839b7ab581
parent57bc8917c31ec34f0ac3e12a2738a7166e58ee5e
MINOR: Add ability for agent-check to set server maxconn

This is very useful in complex architecture systems where HAproxy
is balancing DB connections for example. We want to keep the maxconn
high in order to avoid issues with queueing on the LB level when
there is slowness on another part of the system. Example is a case of
an architecture where each thread opens multiple DB connections, which
if get stuck in queue cause a snowball effect (old connections aren't
closed, new ones cannot be established). These connections are mostly
idle and the DB server has no problem handling thousands of them.

Allowing us to dynamically set maxconn depending on the backend usage
(LA, CPU, memory, etc.) enables us to have high maxconn for situations
like above, but lowering it in case there are real issues where the
backend servers become overloaded (cache issues, DB gets hit hard).
doc/configuration.txt
include/proto/server.h
src/checks.c
src/server.c