[TESTS] added two new test configurations
- one for basic features - one for httpterm
This commit is contained in:
parent
8f2b855ab2
commit
1da7a77031
|
@ -0,0 +1,43 @@
|
|||
# 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
|
||||
|
|
@ -0,0 +1,38 @@
|
|||
global
|
||||
maxconn 500
|
||||
daemon
|
||||
#ulimit-n 80
|
||||
#uid 0
|
||||
#gid 0
|
||||
#chroot /tmp
|
||||
#nbproc 2
|
||||
#debug
|
||||
#quiet
|
||||
|
||||
listen serv9000 0.0.0.0:9000
|
||||
maxconn 30000
|
||||
object weight 1 name test1 code 200 size 1048576
|
||||
#object weight 1 name test1 code 304 size 0 time 50 no-cache
|
||||
#object weight 1 name test2 code 200 size 100 time 50
|
||||
#object weight 1 name test3 code 200 size 1000 time 50
|
||||
#object weight 1 name test4 code 200 size 300 time 50
|
||||
clitimeout 10000
|
||||
|
||||
listen serv9001 0.0.0.0:9001
|
||||
maxconn 30000
|
||||
object weight 1 name test1 code 304 size 0
|
||||
#object weight 1 name test1 code 304 size 0 time 50 no-cache
|
||||
#object weight 1 name test2 code 200 size 100 time 50
|
||||
#object weight 1 name test3 code 200 size 1000 time 50
|
||||
#object weight 1 name test4 code 200 size 300 time 50
|
||||
clitimeout 10000
|
||||
|
||||
listen serv9002 0.0.0.0:9002
|
||||
maxconn 30000
|
||||
#object weight 1 name test1 code 304 size 0
|
||||
#object weight 1 name test1 code 304 size 0 time 50 no-cache
|
||||
object weight 1 name test2 code 200 size 100 time 500
|
||||
#object weight 1 name test3 code 200 size 1000 time 50
|
||||
#object weight 1 name test4 code 200 size 300 time 50
|
||||
clitimeout 10000
|
||||
|
Loading…
Reference in New Issue