On Sat, Jun 02, 2018 at 10:46:41PM -0300, Joao Morais wrote:
> 
> Hi, taking this hypothetical cfg:
> 
> =======
> global
>   daemon
>   nbproc 3
>   stats socket unix@/tmp/haproxy1.sock expose-fd listeners process 1
>   stats socket unix@/tmp/haproxy2.sock expose-fd listeners process 2
>   stats socket unix@/tmp/haproxy3.sock expose-fd listeners process 3
> listen f1
>   bind :80 process 1
>   server s1 192.168.99.1:8000 check
> listen f2
>   bind :8080 process 2-3
>   server s2 192.168.99.1:8000 check
> =======
> 
> What's the right or the better way to seamless reload (-x) this multi process 
> configuration? Multi -x command-line parameter doesn't seem to work, and use 
> one or the other socket will apparently leave some listening sockets without 
> being reused.
> 
> ~jm
> 

Hello Joao,

In fact you only need one socket exposing the listeners in your configuration.

The process exposing the listeners will expose them for every process. That
means it works the same way for one process or for multiple processes.

In daemon mode, you just need to use -sf -x on the new process.

In master-worker mode, you just have to kill -USR2 the master which will launch
a new process with -sf -x by itself.

Cheers,

-- 
William Lallemand

Reply via email to