mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-23 05:53:09 +00:00
[TESTS] add a simple test for the status page
This commit is contained in:
parent
acafc5f88c
commit
23085b6df8
24
tests/test-status.cfg
Normal file
24
tests/test-status.cfg
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
# This is a test configuration.
|
||||||
|
# It presents an active, a failed server, and a backup server in the
|
||||||
|
# stats page. Connect to port 8000 to consult status.
|
||||||
|
|
||||||
|
|
||||||
|
global
|
||||||
|
maxconn 10000
|
||||||
|
#daemon
|
||||||
|
#nbproc 2
|
||||||
|
|
||||||
|
listen to-pcw
|
||||||
|
mode http
|
||||||
|
bind :8000
|
||||||
|
clitimeout 15000
|
||||||
|
srvtimeout 15000
|
||||||
|
contimeout 15000
|
||||||
|
maxconn 40000
|
||||||
|
option httpclose
|
||||||
|
balance roundrobin
|
||||||
|
server srv1 127.0.0.1:6000 check inter 1000 maxconn 1000 maxqueue 100
|
||||||
|
server srv2 127.0.0.1:65535 check inter 1000 maxqueue 100
|
||||||
|
server srv3 127.0.0.1:65535 backup
|
||||||
|
stats uri /
|
||||||
|
|
Loading…
Reference in New Issue
Block a user