]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: Set rise and fall of agent checks to 1
authorSimon Horman <horms@verge.net.au>
Mon, 25 Nov 2013 01:46:38 +0000 (10:46 +0900)
committerWilly Tarreau <w@1wt.eu>
Mon, 25 Nov 2013 06:31:16 +0000 (07:31 +0100)
commit58c32978b2877f1f3f73cd37eaefc0fe4458039c
tree13215ddf6e7b489bb6689f442adddbc1a26c00f7
parent2f1f955c8cf7a1ab13a5a6f119719d0d3449859b
MEDIUM: Set rise and fall of agent checks to 1

This is achieved by moving rise and fall from struct server to struct check.

After this move the behaviour of the primary check, server->check is
unchanged. However, the secondary agent check, server->agent now has
independent rise and fall values each of which are set to 1.

The result is that receiving "fail", "stopped" or "down" just once from the
agent will mark the server as down. And receiving a weight just once will
allow the server to be marked up if its primary check is in good health.

This opens up the scope to allow the rise and fall values of the agent
check to be configurable, however this has not been implemented at this
stage.

Signed-off-by: Simon Horman <horms@verge.net.au>
include/common/defaults.h
include/types/server.h
src/cfgparse.c
src/checks.c
src/dumpstats.c
src/proto_http.c
src/server.c