-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhaproxy.cfg
66 lines (55 loc) · 1.32 KB
/
haproxy.cfg
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
global
daemon
maxconn 4096
pidfile haproxy.pid
defaults
log global
log 127.0.0.1 local0
log 127.0.0.1 local1 notice
mode http
timeout connect 300000
timeout client 300000
timeout server 300000
option redispatch
retries 3
option httpclose
option httplog
option forwardfor
option httpchk HEAD / HTTP/1.0
backend app
balance roundrobin
server app localhost:3000
backend cpuService
balance roundrobin
server cpu1 localhost:3001
server cpu2 localhost:3002
server cpu3 localhost:3003
server cpu4 localhost:3004
backend memService
balance roundrobin
server mem1 localhost:3005
backend recService
balance roundrobin
server rec localhost:4000
server recArango localhost:4001
backend neo4j
balance roundrobin
server neo localhost:4002
backend mongodb
balance roundrobin
server mongo localhost:4003
backend arangodb
balance roundrobin
server arango localhost:8529
frontend http-farm
bind *:9000
use_backend app if { path_beg /app }
use_backend cpuService if { path_beg /cpu }
use_backend memService if { path_beg /mem }
use_backend recService if { path_beg /products }
use_backend neo4j if { path_beg /neo4j }
use_backend mongodb if { path_beg /mongo }
use_backend arangodb if { path_beg /arangodb }
listen haproxyapp_admin:9100 127.0.0.1:9100
mode http
stats uri /