Created
October 7, 2014 10:56
-
-
Save rnewson/8a1d91ed6440a9012b09 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
maxconn 10000 | |
spread-checks 5 | |
defaults | |
mode http | |
log global | |
monitor-uri /_haproxy_health_check | |
option httplog | |
balance roundrobin | |
option forwardfor | |
option redispatch | |
retries 4 | |
timeout client 150000 | |
timeout server 3600000 | |
timeout connect 500 | |
stats enable | |
stats scope . | |
stats uri /_stats | |
frontend http-in | |
# This requires HAProxy 1.5.x | |
# bind *:$HAPROXY_PORT | |
bind *:5984 | |
default_backend servers | |
backend servers | |
stats enable | |
stats auth foo:bar | |
stats uri /_haproxy | |
stats scope . | |
#option httpchk GET /_up | |
#http-check disable-on-404 | |
server node1 127.0.0.1:15984 check inter 5s | |
server node2 127.0.0.1:25984 check inter 5s | |
server node3 127.0.0.1:35984 check inter 5s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment