A little bump.. Wondering if the truss attachments maybe got my mail blocked.. ( the mail doesn't show on https://www.mail-archive.com/haproxy@formilux.org/maillist.html )
They where 107KB total in 2 attachments.. Now in 0bin links:
https://0bin.net/paste/GIcxOfap-GYPrO7H#OnvGNxx2k41SLEK6VxJk9n-mD7vv/vQe/Pj33VRqdju
https://0bin.net/paste/sJ955XNt2hE1a9mF#xsMP2tzydlK3BVpxo2nNRl878SRbxZNAUpRw5-YhwdM

Op 20-11-2017 om 1:47 schreef PiBa-NL:
Hi List,

After compiling haproxy 1.8-rc4 (without modifications) on FreeBSD11.1 i'm trying to run it with master-worker option.

I can run it with the following config from a ssh console:

global
    #daemon
    master-worker
       nbproc 4

listen HAProxyLocalStats
    bind :2200 name localstats
    mode http
    stats enable
    stats refresh 2
    stats admin if TRUE
    stats uri /
    stats show-desc Test2

It then starts 5 haproxy processes and the stats page works, being served from one of the workers.

However if i start it with the 'daemon' option enabled or the -D startup parameter, it starts in background, also starts 4 workers, but then doesn't respond to browser requests.. Sending a 'kill -1' to the master does start new workers see output below.

Truss output attached from commands below with a few requests to the stats page..
 truss -dfHo /root/haproxy-truss.txt -f haproxy -f /root/hap.conf -D
 truss -dfHo /root/haproxy-truss.txt -f haproxy -f /root/hap.conf

truss shows that 'accept4' isn't called when ran in daemon mode..

Am i doing something wrong? Or how can i check this further?

Regards,
PiBa-NL / Pieter


root@:/ # haproxy -vv
HA-Proxy version 1.8-rc4-cfe1466 2017/11/19
Copyright 2000-2017 Willy Tarreau <wi...@haproxy.org>

Build options :
  TARGET  = freebsd
  CPU     = generic
  CC      = cc
  CFLAGS  = -O2 -pipe -fstack-protector -fno-strict-aliasing -fno-strict-aliasing -Wdeclaration-after-statement -fwrapv -Wno-address-of-packed-member -Wno-null-dereference -Wno-unused-label -DFREEBSD_PORTS   OPTIONS = USE_GETADDRINFO=1 USE_ZLIB=1 USE_CPU_AFFINITY=1 USE_ACCEPT4=1 USE_REGPARM=1 USE_OPENSSL=1 USE_LUA=1 USE_STATIC_PCRE=1 USE_PCRE_JIT=1

Default settings :
  maxconn = 2000, bufsize = 16384, maxrewrite = 1024, maxpollevents = 200

Built with multi-threading support.
Built with PCRE version : 8.40 2017-01-11
Running on PCRE version : 8.40 2017-01-11
PCRE library supports JIT : yes
Encrypted password support via crypt(3): yes
Built with zlib version : 1.2.11
Running on zlib version : 1.2.11
Compression algorithms supported : identity("identity"), deflate("deflate"), raw-deflate("deflate"), gzip("gzip")
Built with network namespace support.
Built with transparent proxy support using: IP_BINDANY IPV6_BINDANY
Built with Lua version : Lua 5.3.4
Built with OpenSSL version : OpenSSL 1.0.2k-freebsd  26 Jan 2017
Running on OpenSSL version : OpenSSL 1.0.2k-freebsd  26 Jan 2017
OpenSSL library supports TLS extensions : yes
OpenSSL library supports SNI : yes
OpenSSL library supports : SSLv3 TLSv1.0 TLSv1.1 TLSv1.2

Available polling systems :
     kqueue : pref=300,  test result OK
       poll : pref=200,  test result OK
     select : pref=150,  test result OK
Total: 3 (3 usable), will use kqueue.

Available filters :
        [TRACE] trace
        [COMP] compression
        [SPOE] spoe


root@:/ # haproxy -f /root/hap.conf -D
[WARNING] 323/005936 (1604) : config : missing timeouts for proxy 'HAProxyLocalStats'.    | While not properly invalid, you will certainly encounter various problems    | with such a configuration. To fix this, please ensure that all following
   | timeouts are set to a non-zero value: 'client', 'connect', 'server'.
[WARNING] 323/005936 (1604) : Proxy 'HAProxyLocalStats': in multi-process mode, stats will be limited to process assigned to the current request. [WARNING] 323/005936 (1604) : Proxy 'HAProxyLocalStats': stats admin will not work correctly in multi-process mode.
root@:/ # kill -1 1605
root@:/ # [WARNING] 323/005936 (1605) : Reexecuting Master process
[WARNING] 323/005945 (1605) : config : missing timeouts for proxy 'HAProxyLocalStats'.    | While not properly invalid, you will certainly encounter various problems    | with such a configuration. To fix this, please ensure that all following
   | timeouts are set to a non-zero value: 'client', 'connect', 'server'.
[WARNING] 323/005945 (1605) : Proxy 'HAProxyLocalStats': in multi-process mode, stats will be limited to process assigned to the current request. [WARNING] 323/005945 (1605) : Proxy 'HAProxyLocalStats': stats admin will not work correctly in multi-process mode.
[WARNING] 323/005945 (1605) : Former worker 1607 left with exit code 0
[WARNING] 323/005945 (1605) : Former worker 1606 left with exit code 0
[WARNING] 323/005945 (1605) : Former worker 1608 left with exit code 0
[WARNING] 323/005945 (1605) : Former worker 1609 left with exit code 0




Reply via email to