Sign inSign up

wongtawan/haproxy

By wongtawan

Updated almost 7 years ago

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

Image
0

251

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

Content type

Image

Digest

Size

76.4 MB

Last updated

almost 7 years ago

docker pull wongtawan/haproxy