]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MINOR] config: automatically compute a default fullconn value
authorWilly Tarreau <w@1wt.eu>
Sun, 5 Jun 2011 13:38:35 +0000 (15:38 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 5 Jun 2011 13:43:27 +0000 (15:43 +0200)
commitfbb78421d48a8b7dc4d53795fbd726c58356c4ae
tree3d150f816d2191aeb2ec543b4e3f4468b2dc002b
parentdf791f59b7a444d8a43daf6875de11c94b76e157
[MINOR] config: automatically compute a default fullconn value

The fullconn value is not easy to get right when doing dynamic regulation,
as it should depend on the maxconns of the frontends that can reach a
backend. Since the parameter is mandatory, many configs are found with
an inappropriate default value.

Instead of rejecting configs without a fullconn value, we now set it to
10% of the sum of the configured maxconns of all the frontends which are
susceptible to branch to the backend. That way if new frontends are added,
the backend's fullconn automatically adjusts itself.
doc/configuration.txt
src/cfgparse.c