Op 13/12/2017 om 20:48 schreef PiBa-NL: > Hi Johan, > > Op 13-12-2017 om 17:31 schreef Johan Hendriks: >> When i use the show stat command I get different results? > > Just a guess, are you using?: nbproc > 1 > Are multiple (old?) haproxy processes running? > > Perhaps including the used config could help diagnose. > And 'haproxy -vv' is always appreciated. > > Regards, > PiBa-NL Yes indeed i use nbproc > 1, There are no old processes running on the machine. This is my global config
global tune.maxrewrite 16384 tune.bufsize 49152 maxconn 20000 daemon nbproc 8 # stats bind-process 1 stats socket /var/run/haproxy/info.sock mode 600 level admin log 127.0.0.1:514 local1 notice defaults log global mode http maxconn 1000 cookie SRVNAME insert option httplog option dontlognull timeout connect 5000 timeout client 100000 timeout server 100000 errorfile 400 /usr/local/etc/haproxy/errors/400.http errorfile 403 /usr/local/etc/haproxy/errors/403.http errorfile 408 /usr/local/etc/haproxy/errors/408.http errorfile 500 /usr/local/etc/haproxy/errors/500.http errorfile 502 /usr/local/etc/haproxy/errors/502.http errorfile 503 /usr/local/etc/haproxy/errors/503.http errorfile 504 /usr/local/etc/haproxy/errors/504.http listen stats bind :8077 mode http stats enable stats scope web-backend stats uri / stats realm Haproxy\ Statistics I just saw that I commented out stats bind-process 1 I did uncomment it and it seems to be working now for the echo "show stat" | socat /var/run/haproxy/info.sock stdio part, it is not switching to UP sometimes, but the web GUI is showing the server is UP. It did show it in maintenance mode first but after a while it shows UP instead of maintenance. This is my haproxy -vv output HA-Proxy version 1.8.1 2017/12/03 Copyright 2000-2017 Willy Tarreau <[email protected]> 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_STATIC_PCRE=1 USE_PCRE_JIT=1 Default settings : maxconn = 2000, bufsize = 16384, maxrewrite = 1024, maxpollevents = 200 Built with network namespace support. 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 PCRE version : 8.40 2017-01-11 Running on PCRE version : 8.40 2017-01-11 PCRE library supports JIT : yes Built with multi-threading support. Encrypted password support via crypt(3): yes Built with transparent proxy support using: IP_BINDANY IPV6_BINDANY Built with OpenSSL version : OpenSSL 1.0.2m 2 Nov 2017 Running on OpenSSL version : OpenSSL 1.0.2n 7 Dec 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 Thank you very much for your time. regards Johan

