]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: mworker: use MASTER_MAXCONN as default maxconn value
authorWilliam Lallemand <wlallemand@haproxy.org>
Thu, 9 Mar 2023 13:28:44 +0000 (14:28 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Thu, 9 Mar 2023 13:28:44 +0000 (14:28 +0100)
commit2078d4b1f77f70ac110022c2b5ac4644e4c01640
treecb21b6e9e7bcdbe9cb09fe8b3002f0069f6bf44a
parentbd3b44edff47865d0bf5ccf6d49033f035e673a3
BUG/MINOR: mworker: use MASTER_MAXCONN as default maxconn value

In environments where SYSTEM_MAXCONN is defined when compiling, the
master will use this value instead of the original minimal value which
was set to 100. When this happens, the master process could allocate
RAM excessively since it does not need to have an high maxconn. (For
example if SYSTEM_MAXCONN was set to 100000 or more)

This patch fixes the issue by using the new define MASTER_MAXCONN which
define a default maxconn of 100 for the master process.

Must be backported as far as 2.5.
include/haproxy/defaults.h
src/haproxy.c