haproxy/tests/basic-test.cfg

44 lines
1.5 KiB
INI
Raw Normal View History

# This is a test configuration.
# It requires another server running on local port 9000, preferably httpterm
# with the file 'httpterm-basic.cfg' from the same directory.
#
# It will wait for HTTP connections on port 8000 and TCP connections on port
# 8001. It will load-balance them across active servers, and will be able to
# validate queuing. Stats are available at URI /?stats.
global
maxconn 500
defaults
contimeout 1000
clitimeout 5000
srvtimeout 5000
retries 1
redispatch
listen http_1
mode http
bind :8000
option httplog
option dontlognull
maxconn 400
balance roundrobin
server srv1 127.0.0.1:9000 cookie s1 check port 9000 inter 1000 fall 1
server srv2 127.0.0.2:9000 cookie s2 check port 9000 inter 1000 fall 1
server srv3 127.0.0.3:9000 cookie s3 check port 9000 inter 1000 fall 1
server srv4 127.0.0.4:9000 cookie s4 check port 9000 inter 1000 fall 1
option httpclose
errorloc 503 /503
stats uri /?stats
listen tcp_1
bind :8001
mode tcp
maxconn 400
balance roundrobin
server srv1 127.0.0.1:9000 cookie s1 check port 9000 inter 1000 fall 1
server srv2 127.0.0.2:9000 cookie s2 check port 9000 inter 1000 fall 1
server srv3 127.0.0.3:9000 cookie s3 check port 9000 inter 1000 fall 1
server srv4 127.0.0.4:9000 cookie s4 check port 9000 inter 1000 fall 1