Hi,
this series was previously sent as "[PATCH 0/5] Dynamic Health Check".
This revised series addresses feedback received and aims to implement the
first stage of the following three-stage plan proposed by Willy Tarreau.
1) we merge Simon's work with the "option lb-agent-chk" directive which
*replaces* the health check method with this one ;
2) we implement "agent-port" and "agent-interval" on the server lines to
automatically enable the agent to be run on another port even when a
different check is running ;
3) we implement "http-check agent-hdr <name>" to retrieve the agent string
from an HTTP header for HTTP checks ;
The implementation and description of the details of the lb-agent-chk option
are provided in the last patch of this series.
Git and diffstat information provided to aid review
----------------------------------------------------------------
The following changes since commit 383085f6c0823069afd84411be28d5d5a3fe8e4e:
BUG/MEDIUM: ssl: openssl 0.9.8 doesn't open /dev/random before chroot
(2013-01-24 21:16:41 +0100)
are available in the git repository at:
git://github.com/horms/haproxy.git lb-agent-chk
for you to fetch changes up to 833eb76c333baf8594ff1882e7b8e03edf801777:
checks: Add agent health check (2013-02-12 10:42:56 +0900)
----------------------------------------------------------------
Simon Horman (7):
Correct logic in cut_crlf()
checks: Make desc argument to set_server_check_status const
dumpstats: Make cli_release_handler() static
server: Break out set weight processing code
server: Allow relative weights greater than 100%
server: Tighten up parsing of weight string
checks: Add agent health check
doc/configuration.txt | 78 ++++++++++++++++++++++++++++++++++-----------
include/common/standard.h | 2 +-
include/proto/server.h | 7 ++++
include/types/peers.h | 1 +
include/types/proxy.h | 3 +-
src/cfgparse.c | 7 ++++
src/checks.c | 53 +++++++++++++++++++++++++++++-
src/dumpstats.c | 64 +++----------------------------------
src/server.c | 68 +++++++++++++++++++++++++++++++++++++++
9 files changed, 203 insertions(+), 80 deletions(-)