]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: stats: Only report drain state in stats if server has SRV_ADMF_DRAIN set
authorSimon Horman <horms@verge.net.au>
Thu, 23 Apr 2015 05:51:28 +0000 (14:51 +0900)
committerWilly Tarreau <w@1wt.eu>
Thu, 23 Apr 2015 07:57:53 +0000 (09:57 +0200)
commit4463d19d4889169c457189fe32bb06160a346355
tree4e62da33aa9b1fbda0dd900cc27490094365af2a
parent837bfa74dba61914b44c120d6a2ce731f8138b3e
MEDIUM: stats: Only report drain state in stats if server has SRV_ADMF_DRAIN set

There are some similarities between a weight of zero and the
administratively set drain state: both allow existing connections
to continue while not accepting any new ones.

However, when reporting a server state generally a distinction is made
between state=UP,weight=0 and state=DRAIN,weight=*. This patch makes
stats reporting consistent in this regard.

This patch does not alter the behaviour that if a server's weight
is zero then its stats row is blue when accessed via HTML. This remains
the case regardless of if the state is UP or DRAIN.

Signed-off-by: Simon Horman <horms@verge.net.au>
src/dumpstats.c