]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: mworker: seamless reload use the internal sockpairs
authorWilliam Lallemand <wlallemand@haproxy.org>
Wed, 24 Nov 2021 17:45:37 +0000 (18:45 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Wed, 24 Nov 2021 18:00:39 +0000 (19:00 +0100)
commit2be557f7cb566e4fa8e3ea5a332e69698adc36c4
tree28167e73b2e478a8bfe5fd2f1d1854122f2fe666
parent82d5f013f96d38867985469bf47bd36ff199a256
MEDIUM: mworker: seamless reload use the internal sockpairs

With the master worker, the seamless reload was still requiring an
external stats socket to the previous process, which is a pain to
configure.

This patch implements a way to use the internal socketpair between the
master and the workers to transfer the sockets during the reload.
This way, the master will always try to transfer the socket, even
without any configuration.

The master will still reload with the -x argument, followed by the
sockpair@ syntax. ( ex -x sockpair@4 ). Which use the FD of internal CLI
to the worker.
doc/configuration.txt
doc/management.txt
src/cli.c
src/haproxy.c
src/sock.c