]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: checks: Implement redis check using tcp-check rules
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 1 Apr 2020 09:08:50 +0000 (11:08 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 27 Apr 2020 07:39:38 +0000 (09:39 +0200)
commit33f05df650b6b35ac2e3b2208ffea6aa3131a40b
tree53681a049367c3eef5fdd0d14e04799906557f3f
parent9e6ed1598e281c08d1ec92a996d4e5b18e6cb1e8
MEDIUM: checks: Implement redis check using tcp-check rules

A share tcp-check ruleset is now created to support redis checks. This way no
extra memory is used if several backends use a redis check.

The following sequence is used :

  tcp-check send "*1\r\n$4\r\nPING\r\n"

  tcp-check expect string "+PONG\r\n" error-status "L7STS" \
      on-error "%[check.payload(),cut_crlf]" on-success "Redis server is ok"
include/common/defaults.h
include/proto/checks.h
include/types/checks.h
include/types/proxy.h
src/cfgparse-listen.c
src/checks.c