]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: Add enable and disable agent unix socket commands
authorSimon Horman <horms@verge.net.au>
Mon, 25 Nov 2013 01:46:39 +0000 (10:46 +0900)
committerWilly Tarreau <w@1wt.eu>
Mon, 25 Nov 2013 06:31:16 +0000 (07:31 +0100)
commit671b6f02b56930086b8f7fc9123928afc340b775
tree904a71c528c1089555c8677d99379b05386c5492
parent58c32978b2877f1f3f73cd37eaefc0fe4458039c
MEDIUM: Add enable and disable agent unix socket commands

The syntax of this new commands are:

enable agent <backend>/<server>
disable agent <backend>/<server>

These commands allow temporarily stopping and subsequently
re-starting an auxiliary agent check. The effect of this is as follows:

New checks are only initialised when the agent is in the enabled. Thus,
disable agent will prevent any new agent checks from begin initiated until
the agent re-enabled using enable agent.

When an agent is disabled the processing of an auxiliary agent check that
was initiated while the agent was set as enabled is as follows: All
results that would alter the weight, specifically "drain" or a weight
returned by the agent, are ignored. The processing of agent check is
otherwise unchanged.

The motivation for this feature is to allow the weight changing effects
of the agent checks to be paused to allow the weight of a server to be
configured using set weight without being overridden by the agent.

Signed-off-by: Simon Horman <horms@verge.net.au>
doc/configuration.txt
include/types/server.h
src/checks.c
src/dumpstats.c