Created
March 11, 2013 21:13
-
-
Save deanproctor/5137813 to your computer and use it in GitHub Desktop.
Riak CS HAProxy Config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global | |
log 127.0.0.1 local0 | |
log 127.0.0.1 local1 notice | |
maxconn 12083 | |
user haproxy | |
group haproxy | |
spread-checks 5 | |
daemon | |
defaults | |
log global | |
option dontlognull | |
option redispatch | |
option allbackups | |
no option httpclose | |
retries 3 | |
maxconn 12083 | |
timeout http-request 10s | |
timeout queue 1m | |
timeout connect 10s | |
timeout client 1m | |
timeout server 1m | |
timeout http-keep-alive 10s | |
timeout check 10s | |
frontend riak_cs | |
bind 0.0.0.0:80 | |
mode http | |
option httplog | |
capture request header Host len 64 | |
acl good_ips src -f /etc/haproxy/gip.lst | |
block if !good_ips | |
use_backend riak_cs_backend if good_ips | |
backend riak_cs_backend | |
mode http | |
balance roundrobin | |
server riak1 10.121.9.164:8080 weight 1 maxconn 12083 check | |
server riak2 10.121.4.75:8080 weight 1 maxconn 12083 check | |
server riak3 10.122.1.213:8080 weight 1 maxconn 12083 check | |
server riak4 10.122.3.204:8080 weight 1 maxconn 12083 check | |
server riak5 10.121.16.76:8080 weight 1 maxconn 12083 check | |
server riak6 10.122.1.52:8080 weight 1 maxconn 12083 check |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment