On Tue, Feb 01, 2022 at 07:41:08PM +0100, Willy Tarreau wrote:
>   - master-worker: some simplifications were applied to the way the new
>     process connects to the old one to retrieve listening sockets. In the
>     past it would rely on "-x" on the command line, or would try to connect
>     to the first socket that had the "expose-fd listener" statement. Now
>     the new process will simply reuse the existing worker socket to
>     retrieve the old socket FDs so that it will work even without a stats
>     socket. As such "-x" is no more used in master mode.

To be a bit more precise, the "-x" option is still used internally, it
is now able to use the internal socketpairs which are used
between the master and the workers. So after a reload you would see
something like this:

        68684 pts/14   S+     0:00 ./haproxy -W -f haproxy.cfg
        68703 pts/14   Sl+    0:00 ./haproxy -sf 68686 -x sockpair@3 -W -f 
haproxy.cfg

The biggest benefit is that you don't have to configure anything
anymore to do a hitless reload.

-- 
William Lallemand

Reply via email to