MINOR: stats: report the number of currently connected peers
authorWilly Tarreau <w@1wt.eu>
Mon, 5 Nov 2018 16:12:27 +0000 (17:12 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 5 Nov 2018 16:15:21 +0000 (17:15 +0100)
commit2d372c2aa17217f3ae0e99d2794bc59e6fad862b
treee8975f3512f81ade09caa5ae0a70644caae661ee
parent199ad24661e46351275c473e8f03cc0e32c7f260
MINOR: stats: report the number of currently connected peers

The active peers output indicates both the number of established peers
connections and the number of peers connection attempts. The new counter
"ConnectedPeers" also indicates the number of currently connected peers.
This helps detect that some peers cannot be reached for example. It's
worth mentioning that this value changes over time because unused peers
are often disconnected and reconnected. Most of the time it should be
equal to ActivePeers.
include/types/global.h
include/types/stats.h
src/haproxy.c
src/peers.c
src/stats.c