Hi there, I read frontend stats, global info and current sessions from a
running haproxy, almost at the same time. Here are the outputs:
# show stat -1 1 -1 typed -- all frontends
$ sed -En '/(pxname|scur)/s/.*://p' fronts
_front__tls
1906
_front_http
40
_front_https
1862
stats
0
prometheus
3
healthz
0
# show info
$ grep CurrConns info
CurrConns: 3809
# show sess
$ awk '{print $4}' sess |sort |uniq -c
1
1 fe=GLOBAL
1902 fe=_front__tls
2 fe=_front_http
38 fe=_front_https
The first two outputs seem correct: show info says 3809 and all the frontends
sum 3811.
The third output shows the number of current sessions per frontend, _front__tls
seems to be correct, however http and https are apparently missing lots of
sessions. Shouldn’t the other frontends have a similar number of sessions
compared with their show stat counterpart? Is there a way to find and list the
remaining http and https connections?
Here is part of the configuration file:
listen _front__tls
mode tcp
bind :443,:::443
... some ssl-passthrough related keywords
server _default_server_https_socket
unix@/var/run/haproxy/_https_socket.sock send-proxy-v2
frontend _front_http
mode http
bind :80,:::80
...
frontend _front_https
mode http
bind unix@/var/run/haproxy/_https_socket.sock accept-proxy ssl ...
…
~jm