hapropxy load balancer for testing mysql replication with GTID (integrated with consul client)
251
Environment Variable:
CONSUL_SERVER=xx.xx.xx.xx
DATACENTER=xxxxxxxx
Use consul-template to render and update haproxy config file (/usr/local/etc/haproxy/haproxy.cfg)
consul template file (/haproxy.cfg.ctmpl)
reload service by haproxy -D -f /usr/local/etc/haproxy/haproxy.cfg -p /run/haproxy.pid -sf $(cat /run/haproxy.pid) -x /var/run/haproxy.sock (this command will execute automatically when consul-template rerender config file
Content type
Image
Digest
Size
76.4 MB
Last updated
almost 7 years ago
docker pull wongtawan/haproxy