Hi,
these two patches suggest the following enhancements to Drain.
The second patch has context dependencies on the first one.
1. Only report drain state in stats if server has SRV_ADMF_DRAIN set
The motivation is to consistently differentiate between
between state=UP,weight=0 and state=DRAIN,weight=* when reporting stats.
2. Differentiate between DRAIN and DRAIN (agent)
The motivation here is to make DRAIN consistent with DOWN.
Patches have been lightly tested.
Simon Horman (2):
MEDIUM: Only report drain state in stats if server has SRV_ADMF_DRAIN
set
MEDIUM: Differentiate between DRAIN and DRAIN (agent)
src/dumpstats.c | 21 ++++++++++++++-------
1 file changed, 14 insertions(+), 7 deletions(-)
--
2.1.4