mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-07 15:47:01 +02:00
TESTS: checks: add a simple test config for tcp-checks
tcp-check.cfg tests various arrangements of initial tcp-check rules.
This commit is contained in:
parent
894c642fbf
commit
668730fd00
63
tests/tcp-check.cfg
Normal file
63
tests/tcp-check.cfg
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
global
|
||||||
|
maxconn 500
|
||||||
|
external-check
|
||||||
|
stats socket /tmp/sock1 mode 666 level admin
|
||||||
|
|
||||||
|
defaults
|
||||||
|
timeout client 5s
|
||||||
|
timeout server 5s
|
||||||
|
timeout connect 5s
|
||||||
|
mode http
|
||||||
|
|
||||||
|
listen stats
|
||||||
|
bind :8888
|
||||||
|
stats uri /
|
||||||
|
|
||||||
|
backend tcp9000
|
||||||
|
option tcp-check
|
||||||
|
server srv 127.0.0.1:9000 check inter 1s
|
||||||
|
|
||||||
|
backend tcp9001
|
||||||
|
option tcp-check
|
||||||
|
tcp-check comment "this is a comment"
|
||||||
|
server srv 127.0.0.1:9001 check inter 1s
|
||||||
|
|
||||||
|
backend tcp9002
|
||||||
|
option tcp-check
|
||||||
|
tcp-check connect port 9002
|
||||||
|
server srv 127.0.0.1:9002 check inter 1s
|
||||||
|
|
||||||
|
backend tcp9003
|
||||||
|
option tcp-check
|
||||||
|
tcp-check comment "this is a comment"
|
||||||
|
tcp-check connect port 9003
|
||||||
|
server srv 127.0.0.1:9003 check inter 1s
|
||||||
|
|
||||||
|
backend tcp9004
|
||||||
|
option tcp-check
|
||||||
|
tcp-check connect port 9004
|
||||||
|
tcp-check send-binary 474554 # "GET"
|
||||||
|
tcp-check send-binary 202F20 # " / "
|
||||||
|
tcp-check send-binary 485454 # "HTT"
|
||||||
|
tcp-check send-binary 502F31 # "P/1"
|
||||||
|
tcp-check send-binary 2E300D # ".0\r"
|
||||||
|
tcp-check send-binary 0A0D0A # "\n\r\n"
|
||||||
|
tcp-check expect rstring HTTP
|
||||||
|
server srv 127.0.0.1:9004 check inter 1s
|
||||||
|
|
||||||
|
backend tcp9005
|
||||||
|
option tcp-check
|
||||||
|
tcp-check connect port 9005 ssl
|
||||||
|
server srv 127.0.0.1:9005 check inter 1s verify none
|
||||||
|
|
||||||
|
backend ssh
|
||||||
|
option tcp-check
|
||||||
|
tcp-check connect port 22
|
||||||
|
tcp-check expect rstring SSH
|
||||||
|
tcp-check send "oops, sorry"
|
||||||
|
server blah 127.0.0.1:22 check inter 1s
|
||||||
|
|
||||||
|
frontend dummy
|
||||||
|
mode http
|
||||||
|
bind :9000-9005
|
||||||
|
|
Loading…
Reference in New Issue
Block a user