Skip to content

Commit ea62653

Browse files
wlallemandcapflam
authored andcommitted
DOC: configuration: more details about the master-worker mode
Add more details about the master-worker mode in the "master-worker" global keyword. Should fix issue #2198. (cherry picked from commit 419b794) Signed-off-by: Christopher Faulet <[email protected]>
1 parent b3839e7 commit ea62653

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

doc/configuration.txt

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2139,10 +2139,18 @@ lua-prepend-path <string> [<type>]
21392139

21402140
master-worker [no-exit-on-failure]
21412141
Master-worker mode. It is equivalent to the command line "-W" argument.
2142-
This mode will launch a "master" which will monitor the "workers". Using
2143-
this mode, you can reload HAProxy directly by sending a SIGUSR2 signal to
2144-
the master. The master-worker mode is compatible either with the foreground
2145-
or daemon mode.
2142+
2143+
This mode will launch a "master" which will fork a "worker" after reading the
2144+
configuration to process the traffic. The master is used as a process manager
2145+
which will monitor the "workers".
2146+
2147+
Using this mode, you can reload HAProxy directly by sending a SIGUSR2 signal
2148+
to the master. Reloading will ask the master to read the configuration again
2149+
and fork a new worker. The previous worker will be kept until the end of its
2150+
jobs.
2151+
2152+
The master-worker mode is compatible either with the foreground or daemon
2153+
mode.
21462154

21472155
By default, if a worker exits with a bad return code, in the case of a
21482156
segfault for example, all workers will be killed, and the master will leave.

0 commit comments

Comments
 (0)