Skip to content

Instantly share code, notes, and snippets.

@rnewson
Created October 7, 2014 11:10
Show Gist options
  • Save rnewson/a9a24e855a5dcafefb80 to your computer and use it in GitHub Desktop.
Save rnewson/a9a24e855a5dcafefb80 to your computer and use it in GitHub Desktop.
global
maxconn 10000
spread-checks 5
defaults
mode http
log global
option httplog
balance roundrobin
option forwardfor
option redispatch
retries 4
timeout client 150000
timeout server 3600000
timeout connect 500
frontend http-in
bind *:5984
default_backend servers
backend servers
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