]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: checks: Use a shared ruleset to store tcp-check rules
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 9 Apr 2020 21:13:54 +0000 (23:13 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 27 Apr 2020 07:39:38 +0000 (09:39 +0200)
commit404f919995e2ec5dba71f02e8340e3922844ec37
treea0d7e3eeae89b1d1665d31a43cff2615ac3b75a1
parente9111b6892b8d8dc7f6e4daed0d7b959923b4e00
MEDIUM: checks: Use a shared ruleset to store tcp-check rules

All tcp-check rules are now stored in the globla shared list. The ones created
to parse a specific protocol, for instance redis, are already stored in this
list. Now pure tcp-check rules are also stored in it. The ruleset name is
created using the proxy name and its config file and line. tcp-check rules
declared in a defaults section are also stored this way using "defaults" as
proxy name.

For now, all tcp-check ruleset are stored in a list. But it could be a bit slow
to looks for a specific ruleset with a huge number of backends. So, it could be
a good idea to use a tree instead.
doc/configuration.txt
include/types/checks.h
src/cfgparse-listen.c
src/cfgparse.c
src/checks.c