]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MEDIUM] add a maintenance mode to servers
authorCyril Bonté <cyril.bonte@free.fr>
Sun, 31 Jan 2010 21:34:03 +0000 (22:34 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 31 Jan 2010 22:33:18 +0000 (23:33 +0100)
commitcd19e51b056d1a7cd67ff3c7db106d71846d13ce
treef5c3e8b1fc7b266a536c6f02a5230f3ab6f65d7b
parent844a7e76d2557364e6d34d00027f2fa514b9d855
[MEDIUM] add a maintenance mode to servers

This is a first attempt to add a maintenance mode on servers, using
the stat socket (in admin level).

It can be done with the following command :
   - disable server <backend>/<server>
   - enable  server <backend>/<server>

In this mode, no more checks will be performed on the server and it
will be marked as a special DOWN state (MAINT).

If some servers were tracking it, they'll go DOWN until the server
leaves the maintenance mode. The stats page and the CSV export also
display this special state.

This can be used to disable the server in haproxy before doing some
operations on this server itself. This is a good complement to the
"http-check disable-on-404" keyword and works in TCP mode.
doc/configuration.txt
include/proto/checks.h
include/types/server.h
src/checks.c
src/dumpstats.c