]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: checks: Add a shared list of tcp-check rules
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 30 Mar 2020 18:34:34 +0000 (20:34 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 27 Apr 2020 07:39:37 +0000 (09:39 +0200)
commit5d503fcf5b3c739660eb8ce090e89e0fdf6c6f17
treef1f5064370ad3625ef751f1d896a58fe0d96b925
parentd2236cdcc4a69edf976802bcfea43cd5125451e0
MEDIUM: checks: Add a shared list of tcp-check rules

A global list to tcp-check ruleset can now be used to share common rulesets with
all backends without any duplication. It is mandatory to convert all specific
protocol checks (redis, pgsql...) to tcp-check healthchecks.

To do so, a flag is now attached to each tcp-check ruleset to know if it is a
shared ruleset or not. tcp-check rules defined in a backend are still directly
attached to the proxy and not shared. In addition a second flag is used to know
if the ruleset is inherited from the defaults section.
include/proto/checks.h
include/types/checks.h
include/types/proxy.h
src/cfgparse-listen.c
src/cfgparse.c
src/checks.c
src/server.c