]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: global: add MODE_DISCOVERY flag
authorValentine Krasnobaeva <vkrasnobaeva@haproxy.com>
Tue, 1 Oct 2024 13:40:53 +0000 (15:40 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 16 Oct 2024 20:02:39 +0000 (22:02 +0200)
commit6769745fe597d0e22f87b90d00436670a846bb83
treef8c87be2cbbfed3796fa374dbf4943cff9b31923
parentfe75c1e12da061c0ed6f533061aae01d8a58a1e5
MINOR: global: add MODE_DISCOVERY flag

This is the first commit from a series to add a support of discovery mode
in the configuration parser and in initialization sequence.

Discovery mode is the mode, when we read the configuration at the first time
and we parse and set runtime modes: daemon, zero-warning, master-worker. In
this mode we also parse some parameters needed for the master process to start,
in case if we are in the master-worker mode. Like this the master process
doesn't allocate any additional resources, which it doesn't use and it quickly
finishes its initialization and enters to its polling loop. The worker process
after its fork reads the rest of the configuration.

So, let's add in this commit MODE_DISCOVERY flag to check it in
configuration parser functions.
include/haproxy/global-t.h