Hi,

I try to test the "seamless reload" patch (see
https://www.mail-archive.com/[email protected]/msg25632.html)  using
the new -x option without success. I always get the following error when
attempting to start a new haproxy using the "-x" option.

[WARNING] 165/120241 (1125) : Failed to get the number of sockets to be
transferred !
[ALERT] 165/120241 (1125) : Failed to get the sockets from the old process!

I do not understand what I'm doing wrong. I have first started haproxy
with the following command:

haproxy -f /usr/local/etc/haproxy/haproxy.cfg -p /var/run/haproxy.pid

Next, I try to use the "-x" option like this:

haproxy -f /usr/local/etc/haproxy/haproxy.cfg -p /var/run/haproxy.pid -x
/var/run/haproxy.sock


Here is my configuration file

global
    daemon
    nbproc 1
    user root
    group root
    stats socket /var/run/haproxy.sock

defaults
    mode http
    timeout connect 5s
    timeout client  20s
    timeout server  30s
    timeout http-request 10s
    timeout http-keep-alive 5s
    timeout check   2s

frontend 80
    bind *:80
    use_backend whoami_80

backend whoami_80
    server whoami whoami:8000


Best regards,
Christophe

-- 

Christophe Burki
Camptocamp SA


Reply via email to