]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MEDIUM] add the "fail" condition to monitor requests
authorWilly Tarreau <w@1wt.eu>
Fri, 30 Nov 2007 19:51:32 +0000 (20:51 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 30 Nov 2007 19:51:32 +0000 (20:51 +0100)
commitb80c230f41880b636c384ad24c102a4cd01301cf
tree47ecdeb18d14460fd3d1783a2167561b87600266
parenta9d3c1e6a31b0e6b847409fe82241789221dc101
[MEDIUM] add the "fail" condition to monitor requests

Under certain circumstances, it is very useful to be able to fail some
monitor requests. One specific case is when the number of servers in
the backend falls below a certain level. The new "monitor fail" construct
followed by either "if"/"unless" <condition> makes it possible to specify
ACL-based conditions which will make the monitor return 503 instead of
200. Any number of conditions can be passed. Another use may be to limit
the requests to local networks only.
include/types/proxy.h
src/cfgparse.c
src/haproxy.c
src/proto_http.c