]> git.kaiwu.me - haproxy.git/commit
MEDIUM: tcpcheck: Add parsing support for healthcheck sections
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 27 Mar 2026 06:35:00 +0000 (07:35 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 1 Apr 2026 14:34:38 +0000 (16:34 +0200)
commit275bd9ec0372a00d73428887b3f916c00da270d6
tree6090ce5fa59f5a039d644004245fd3d9aa62fe66
parent9e92352967077b3d4ebb55b2b8c0c6edb5812012
MEDIUM: tcpcheck:  Add parsing support for healthcheck sections

tcpcheck_ruleset struct was extended to host a config part that will be used
for healthcheck sections. This config part is mainly used to store element
for the server's tcpcheck part.

When a healthcheck section is parsed, a ruleset is created with its name
(which must be unique). "*healthcheck-{NAME}" is used for these ruleset. So
it is not possible to mix them with regular rulesets.

For now, in a healthcheck section, the type must be defined, based on the
options name (tcp-check, httpchk, redis-check...). In addition, several
"tcp-check" or "http-check" rules can be specified, depending on the
healthcheck type.
include/haproxy/tcpcheck-t.h
src/tcpcheck.c