Hello,

I've setup the procedure to store and load the stats file from the socket after 
a reload in order to retain the uptime of my backends.

But it actually does only retain the uptime of the frontend, backend uptime is 
starting by 0s. Is it thought this way or am I doing something wrong? The doc 
says " loading state or load states from a file containing all backends and 
servers."

I've attached the configuration lines as well as the version of the used 
haproxy.

Thanks!

Best regards,
Max


global
    # 
https://serverfault.com/questions/880592/preserve-backend-server-status-when-reloading-haproxy
    # 
https://cbonte.github.io/haproxy-dconv/1.7/configuration.html#load-server-state-from-file
    server-state-file /var/lib/haproxy/server-state
    stats socket /var/lib/haproxy/stats

defaults
    # 
https://serverfault.com/questions/880592/preserve-backend-server-status-when-reloading-haproxy
    # 
https://cbonte.github.io/haproxy-dconv/1.7/configuration.html#load-server-state-from-file
    load-server-state-from-file global





HA-Proxy version 1.8.14-1~bpo8+1 2018/09/24
Copyright 2000-2018 Willy Tarreau <wi...@haproxy.org>

Build options :
  TARGET  = linux2628
  CPU     = generic
  CC      = gcc
  CFLAGS  = -g -O2 -fPIE -fstack-protector-strong -Wformat 
-Werror=format-security -D_FORTIFY_SOURCE=2
  OPTIONS = USE_GETADDRINFO=1 USE_ZLIB=1 USE_REGPARM=1 USE_OPENSSL=1 USE_LUA=1 
USE_SYSTEMD=1 USE_PCRE=1 USE_PCRE_JIT=1 USE_NS=1

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

Built with OpenSSL version : OpenSSL 1.0.2l  25 May 2017
Running on OpenSSL version : OpenSSL 1.0.2l  25 May 2017
OpenSSL library supports TLS extensions : yes
OpenSSL library supports SNI : yes
OpenSSL library supports : TLSv1.0 TLSv1.1 TLSv1.2
Built with Lua version : Lua 5.3.3
Built with transparent proxy support using: IP_TRANSPARENT IPV6_TRANSPARENT 
IP_FREEBIND
Encrypted password support via crypt(3): yes
Built with multi-threading support.
Built with PCRE version : 8.35 2014-04-04
Running on PCRE version : 8.35 2014-04-04
PCRE library supports JIT : yes
Built with zlib version : 1.2.8
Running on zlib version : 1.2.8
Compression algorithms supported : identity("identity"), deflate("deflate"), 
raw-deflate("deflate"), gzip("gzip")
Built with network namespace support.

Available polling systems :
      epoll : pref00,  test result OK
       poll : pref 0,  test result OK
     select : pref0,  test result OK
Total: 3 (3 usable), will use epoll.

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

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to