haproxy/tests/test-balance.cfg

66 lines
752 B
INI

# This is a test configuration.
# It tests the "balance" parser for several parameter combinations.
global
maxconn 10000
defaults
balance
defaults
balance roundrobin
defaults
balance source
defaults
balance uri
defaults
balance url_param foo
defaults
mode tcp
# must produce an error
#defaults
# balance url_param
backend tcp-bk1
balance
backend tcp-bk2
balance roundrobin
backend tcp-bk3
balance source
backend tcp-bk4
balance uri
backend tcp-bk5
balance url_param foo
defaults
mode http
backend http-bk1
balance
backend http-bk2
balance roundrobin
backend http-bk3
balance source
backend http-bk4
balance uri
backend http-bk5
balance url_param foo
# must produce an error
#backend http-bk6
# balance url_param