]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: checks: add on-marked-up option
authorJustin Karneges <justin@affinix.com>
Thu, 24 May 2012 22:28:52 +0000 (15:28 -0700)
committerWilly Tarreau <w@1wt.eu>
Sun, 3 Jun 2012 21:48:42 +0000 (23:48 +0200)
commiteb2c24ae2ad1c325a5adebe7c877b39fdd02b012
tree77f0bdc04c1368e6aa82947edc21ed29cbcad4f1
parent39b0665bc7d25f7389d944599bcbcff7513f1e7e
MINOR: checks: add on-marked-up option

This implements the feature discussed in the earlier thread of killing
connections on backup servers when a non-backup server comes back up. For
example, you can use this to route to a mysql master & slave and ensure
clients don't stay on the slave after the master goes from down->up. I've done
some minimal testing and it seems to work.

[WT: added session flag & doc, moved the killing after logging the server UP,
 and ensured that the new server is really usable]
doc/configuration.txt
include/types/checks.h
include/types/server.h
include/types/session.h
src/cfgparse.c
src/checks.c
src/log.c