File: test-balance.cfg

package info (click to toggle)
haproxy 1.5.8-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 7,732 kB
  • sloc: ansic: 62,860; xml: 1,754; python: 925; makefile: 551; perl: 550; sh: 491
file content (65 lines) | stat: -rw-r--r-- 752 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# 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