]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: stats: introduce new actions to simplify admin status management
authorWilly Tarreau <w@1wt.eu>
Thu, 22 May 2014 16:04:49 +0000 (18:04 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 23 May 2014 12:29:11 +0000 (14:29 +0200)
commited7df90068405faa3185982954ca7de4aaf9e07a
tree5d6d92d4a51423ba21a10beb1eeb0f5376f7e3f9
parentfae3a7eacd82972e3f5c1f45ea5639b9c8c199a6
MEDIUM: stats: introduce new actions to simplify admin status management

Instead of enabling/disabling maintenance mode and drain mode separately
using 4 actions, we now offer 3 simplified actions :
  - set state to READY
  - set state to DRAIN
  - set state to MAINT

They have the benefit of reporting the same state as displayed on the page,
and of doing the double-switch atomically eg when switching from drain to
maint.

Note that the old actions are still supported for users running scripts.
include/types/proto_http.h
src/dumpstats.c