]> git.kaiwu.me - haproxy.git/commit
MEDIUM: check: include server address and port in the send-state header
authorJoseph Lynch <joe.e.lynch@gmail.com>
Fri, 16 Jan 2015 01:52:59 +0000 (17:52 -0800)
committerWilly Tarreau <w@1wt.eu>
Thu, 26 Mar 2015 22:40:42 +0000 (23:40 +0100)
commit514061c414080701cb046171041a2d00859660e8
tree33cb014b9dab848e1c3b97c07350800ffad196d0
parent32f61e288defa9b4ca077e999dfda40b8e18e0a4
MEDIUM: check: include server address and port in the send-state header

This fixes an issue that occurs when backend servers run on different
addresses or ports and you wish to healthcheck them via a consistent
port. For example, if you allocate backends dynamically as containers
that expose different ports and you use an inetd based healthchecking
component that runs on a dedicated port.

By adding the server address and port to the send-state header, the
healthcheck component can deduce which address and port to check by
reading the X-Haproxy-Server-State header out of the healthcheck and
parsing out the address and port.
doc/configuration.txt
src/checks.c