-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhaproxy.cfg
More file actions
39 lines (34 loc) · 722 Bytes
/
haproxy.cfg
File metadata and controls
39 lines (34 loc) · 722 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
38
39
global
log /dev/log local0
log /dev/log local1 notice
maxconn 4096
lua-load /usr/local/etc/haproxy/firebird_wrapper.lua
defaults
log global
mode http
option httplog
option dontlognull
timeout connect 5000
timeout client 50000
timeout server 50000
listen stats
bind *:8500
stats enable
stats scope .
stats realm Haproxy\ Statistics
stats uri /
stats show-legends
frontend firebird
bind *:3050
mode tcp
tcp-request inspect-delay 1s
tcp-request content lua.choose_backend
use_backend %[var(req.backend)]
backend firebird1
mode tcp
balance leastconn
server firebird1 firebird1:3050
backend firebird2
mode tcp
balance leastconn
server firebird2 firebird2:3050