Revision 343236613231 () - Diff

Link to this snippet: https://friendpaste.com/4RH2zuDnuGVHEWWNlMo9k5
Embed:
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
# Quite bloated example. Pick what you need.

global
log 127.0.0.1 local0 alert
log 127.0.0.1 local1 alert
#log loghost local0 info
maxconn 4096
#debug
#quiet
user haproxy
group haproxy

defaults
log global
mode tcp
option dontlognull

retries 3
redispatch
maxconn 2000
contimeout 5000
clitimeout 50000
srvtimeout 50000

listen beanstalkd *:10022
balance roundrobin
server qs_1 dom*******1.compute-1.internal:11224 check inter 2000 rise 2 fall 5
server qs_2 localhost:11224 check inter 2000 rise 2 fall 5 backup

listen memcached *:10023
balance roundrobin
server qs_1 domU********.compute-1.internal:11222 check inter 2000 rise 2 fall 5
server qs_2 localhost:11222 check inter 2000 rise 2 fall 5 backup

#backend private_monitoring
listen statssrv *:80
balance source
mode http
stats enable
stats auth *************
stats uri /haproxy?stats
server dummy localhost:8001