Skip to content

Instantly share code, notes, and snippets.

@rottmanj
Created January 11, 2013 21:52
Show Gist options
  • Save rottmanj/4514254 to your computer and use it in GitHub Desktop.
Save rottmanj/4514254 to your computer and use it in GitHub Desktop.
HA Proxy
global
log 127.0.0.1 local0
log 127.0.0.1 local1 notice
#log loghost local0 info
maxconn 4096
#debug
#quiet
user haproxy
group haproxy
defaults
log global
mode http
option tcplog
option dontlognull
retries 3
option redispatch
maxconn 2000
contimeout 5000
clitimeout 50000
srvtimeout 50000
listen mysql-cluster 0.0.0.0:3307
mode tcp
balance leastconn
option httpchk
server ip-10-86-229-20 10.86.229.20:3306 check port 9200 inter 12000 rise 3 fall 3
server ip-10-86-186-182 10.86.186.182:3306 check port 9200 inter 12000 rise 3 fall 3
listen admin 0.0.0.0:22002
mode http
stats uri /
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment