HUB
Sign inSign up

wongtawan/haproxy

By wongtawan

•Updated about 7 years ago

hapropxy load balancer for testing mysql replication with GTID (integrated with consul client)

Image
0

282

wongtawan/haproxy repository overview

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

Tag summary
Recent tags
Content type
Image
Digest
Size
76.4 MB
Last updated
about 7 years ago
docker pull wongtawan/haproxy:latest