File: test-retries.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 (106 lines) | stat: -rw-r--r-- 2,166 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# This is a test configuration.
# It must load-balance across active servers. Check local apache logs to
# verify :
#
#  tail /var/log/apache/access_log


global
	maxconn		10000

defaults
	log 127.0.0.1:514 local0
	balance roundrobin
	contimeout 3000
	srvtimeout 20000
	clitimeout 10000
        option dontlognull

listen  no_cookie
        bind   :8000
	retries 2
	redispatch
        mode   http
	option httplog
	balance roundrobin
	server	dead1 1.1.1.1:80
	server	good1 127.0.0.1:80

# this one sends the connection to dead1, retries, then to good1, assigns
# the cookie. Subsequent connection will try to s1 again and should try good1.
listen  cookie
        bind   :8001
	retries 2
	redispatch
        mode   http
	option httplog
	cookie SRV insert indirect nocache
	balance roundrobin
	server	dead1 1.1.1.1:80 cookie s1
	server	good1 127.0.0.1:80 cookie s1

# this one sends the connection to dead1, retries, then to good1, assigns
# the cookie. Subsequent connection will try to s1 again and will stick to it.
listen  cookie_persist
        bind   :8002
	retries 2
	redispatch
	option persist
        mode   http
	option httplog
	cookie SRV insert indirect nocache
	balance roundrobin
	server	dead1 1.1.1.1:80 cookie s1
	server	good1 127.0.0.1:80 cookie s1

frontend frt_default_tcp
        bind   :8003
        mode   tcp
	option httplog
	default_backend bck_default_tcp

backend bck_default_tcp
        mode   tcp
	option httplog
	retries 2
	redispatch
	balance roundrobin
	contimeout 1000
	srvtimeout 25000
	server	dead1 1.1.1.1:80
	server	good1 127.0.0.1:80

frontend frt_default
        bind   :8004
        mode   http
	option httplog
	default_backend bck_default

backend bck_default
        mode   http
	option httplog
	retries 2
	redispatch
	balance roundrobin
	contimeout 1000
	srvtimeout 25000
	server	dead1 1.1.1.1:80
	server	good1 127.0.0.1:80

frontend frt_use_back
        bind   :8005
        mode   http
	option httplog
	use_backend bck_use_back if TRUE

backend bck_use_back
        mode   http
	option httplog
	retries 2
	redispatch
	balance roundrobin
	contimeout 1000
	srvtimeout 25000
	server	dead1 1.1.1.1:80
	server	good1 127.0.0.1:80