-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhaproxy-riak.config
67 lines (61 loc) · 2.29 KB
/
haproxy-riak.config
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
global
log 127.0.0.1 local0
log 127.0.0.1 local1 notice
maxconn 4096
pidfile ~/tmp/haproxy-riakcs-queue.pid
defaults
log global
option dontlognull
option redispatch
option allbackups
maxconn 256000
timeout connect 5000
retries 3
maxconn 256000
timeout connect 5000
timeout client 5000
timeout server 5000
backend riak_cs_rest_backend
mode http
balance roundrobin
option httpchk GET /riak-cs/ping
option httplog
server riak1 127.0.0.1:18080 weight 1 maxconn 1024 check
server riak2 127.0.0.1:28080 weight 1 maxconn 1024 check
server riak3 127.0.0.1:38080 weight 1 maxconn 1024 check
frontend riak_cs_rest
bind 127.0.0.1:8080
mode http
option contstats
default_backend riak_cs_rest_backend
backend riak_rest_backend
mode http
balance roundrobin
option httpchk GET /ping
option httplog
server riak1 127.0.0.1:18098 weight 1 maxconn 1024 check
server riak2 127.0.0.1:28098 weight 1 maxconn 1024 check
server riak3 127.0.0.1:38098 weight 1 maxconn 1024 check
frontend riak_rest
bind 127.0.0.1:8098
mode http
option contstats
default_backend riak_rest_backend
# backend riak_protocol_buffer_backend
# balance leastconn
# mode tcp
# option tcpka
# option srvtcpka
# server riak1 127.0.0.1:18087 weight 1 maxconn 1024 check
# server riak2 127.0.0.1:28087 weight 1 maxconn 1024 check
# server riak3 127.0.0.1:38087 weight 1 maxconn 1024 check
#
# frontend riak_protocol_buffer
# bind 127.0.0.1:8087
# mode tcp
# option tcplog
# option contstats
# mode tcp
# option tcpka
# option srvtcpka
# default_backend riak_protocol_buffer_backend