Skip to content

Instantly share code, notes, and snippets.

@densone
Created February 16, 2013 02:36
Show Gist options
  • Save densone/a91cac3f968669c5fbe6 to your computer and use it in GitHub Desktop.
Save densone/a91cac3f968669c5fbe6 to your computer and use it in GitHub Desktop.
global
log 127.0.0.1 local0
log 127.0.0.1 local1 notice
maxconn 12083
spread-checks 5
daemon
defaults
log global
option dontlognull
option redispatch
option allbackups
no option httpclose
retries 3
maxconn 12083
contimeout 5000
srvtimeout 60000
frontend riak_cs
bind 10.0.24.100:8080
bind 10.0.24.100:8443 ssl crt /opt/local/haproxy/etc/data.pem
mode http
option httplog
capture request header Host len 64
acl good_ips src -f /opt/local/haproxy/etc/gip.lst
block if !good_ips
use_backend riak_cs_backend if good_ips
backend riak_cs_backend
mode http
balance roundrobin
timeout connect 60s
timeout http-request 60s
server riak6 r1s03.bos1:8081 weight 1 maxconn 12083 check
server riak5 r1s04.bos1:8081 weight 1 maxconn 12083 check
server riak4 r1s05.bos1:8081 weight 1 maxconn 12083 check
server riak3 r1s06.bos1:8081 weight 1 maxconn 12083 check
server riak2 r1s07.bos1:8081 weight 1 maxconn 12083 check
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment