-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathhaproxy.cfg
More file actions
38 lines (33 loc) · 734 Bytes
/
haproxy.cfg
File metadata and controls
38 lines (33 loc) · 734 Bytes
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
global
log 127.0.0.1 local2 notice
maxconn 4096
user nobody
group nobody
daemon
defaults
log global
mode tcp
retries 3
option redispatch
maxconn 2000
timeout connect 2s
timeout client 120s
timeout server 120s
frontend monitor
bind :80
mode http
stats enable
stats show-legends
stats uri /stats
frontend redis
bind :6379
default_backend redis_backend
backend redis_backend
option tcp-check
tcp-check send PING\r\n
tcp-check expect string +PONG
tcp-check send INFO\ REPLICATION\r\n
tcp-check expect string role:master
tcp-check send QUIT\r\n
tcp-check expect string +OK
server redis1 $REDIS_HOST:6379 check inter 1s