Created
September 19, 2014 13:26
-
-
Save jamesattard/c7384840d722b276f6f1 to your computer and use it in GitHub Desktop.
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
root@mysql-cluster# cat /etc/haproxy/haproxy.cfg | |
global | |
log 127.0.0.1 local0 notice | |
user haproxy | |
group haproxy | |
defaults | |
log global | |
retries 2 | |
timeout connect 3000 | |
timeout server 5000 | |
timeout client 5000 | |
listen MySQL-Proxy 10.250.1.100:3306 | |
mode tcp | |
option mysql-check user haproxy_check | |
balance roundrobin | |
server m-mysql01 10.250.1.101:3306 check | |
#server m-mysql02 10.250.1.102:3306 check | |
listen HAProxy-Stats 10.250.1.100:8080 | |
mode http | |
stats enable | |
stats uri / | |
stats realm Strictly\ Private | |
stats auth haproxy:password |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment