Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- global
- log 127.0.0.1 local0
- log 127.0.0.1 local1 notice
- #log loghost local0 info
- maxconn 4096
- #chroot /usr/share/haproxy
- user haproxy
- group haproxy
- daemon
- #debug
- #quiet
- defaults
- log global
- mode http
- option httplog
- option dontlognull
- retries 3
- option redispatch
- maxconn 2000
- contimeout 5000
- clitimeout 50000
- srvtimeout 50000
- ## -- FRONTENDS
- frontend pxc-front
- bind 172.16.29.238:3308
- mode tcp
- default_backend pxc-back
- frontend pxc-onenode-front
- bind 172.16.29.238:3309
- mode tcp
- default_backend pxc-onenode-back
- frontend stats-front
- bind *:8180
- mode http
- default_backend stats-back
- ## -- BACKENDS
- backend pxc-back
- mode tcp
- balance leastconn
- option httpchk
- server galera1 172.16.29.49:3306 check port 9200 inter 5000 rise 3 fall 3
- server galera2 172.16.29.50:3306 check port 9200 inter 5000 rise 3 fall 3
- server galera3 172.16.29.51:3306 check port 9200 inter 5000 rise 3 fall 3
- backend pxc-onenode-back
- mode tcp
- balance leastconn
- option httpchk
- server galera1 172.16.29.49:3306 check port 9200 inter 5000 rise 3 fall 3
- server galera2 172.16.29.50:3306 check port 9200 inter 5000 rise 3 fall 3 backup
- server galera3 172.16.29.51:3306 check port 9200 inter 5000 rise 3 fall 3 backup
- backend stats-back
- mode http
- balance roundrobin
- stats uri /haproxy?stats
- stats auth admin:blabla
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement