]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: Do not consider an agent check as failed on L7 error
authorSimon Horman <horms@verge.net.au>
Thu, 26 Feb 2015 02:26:17 +0000 (11:26 +0900)
committerWilly Tarreau <w@1wt.eu>
Thu, 26 Feb 2015 06:06:50 +0000 (07:06 +0100)
commiteaabd52e29a29187f9829fe727028a6ca530cbf9
tree06d99ea90a1722a6265812fb7719b59a19970050
parent107ddc1b67ad43b1406e49ea1d45010755dd60e5
BUG/MEDIUM: Do not consider an agent check as failed on L7 error

As failure to connect to the agent check is not sufficient to mark it as
failed it stands to reason that an L7 error shouldn't either.

Without this fix if an L7 error occurs, for example of connectivity to the
agent is lost immediately after establishing a connection to it, then the
agent check will be considered to have failed and thus may end up with zero
health. Once this has occurred if the primary health check also reaches
zero health, which is likely if connectivity to the server is lost, then
the server will be marked as down and not be marked as up again until a
successful agent check occurs regardless of the success of any primary
health checks.

This behaviour is not correct as a failed agent check should never cause a
server to be marked as down or by extension continue to be marked as down.

Signed-off-by: Simon Horman <horms@verge.net.au>
src/checks.c