bash - Supervisord haproxy reload not working -


i deploying application in docker container processes managed supervisor. have haproxy running in container being reloaded (via sudo haproxy reload) when there's change in list of servers in zookeeper. problem supervisor restarts process old config right away, not taking changes effect.

1) have tried supervisorctl reread, trying reload (rather have restart) avoid downtime.

2) have considered implementing restart of haproxy packet redirection, there limitations in iptables usage in docker (as per https://github.com/docker/docker/issues/4424# , https://github.com/docker/docker/issues/4556)

any suggestions highly appreciated!

this has been solved following command sequence:

iptables -i input -p tcp --dport 3213 --syn -j drop sleep 1 supervisorctl -u login -p pass restart haproxy:* iptables -d input -p tcp --dport 3213 --syn -j drop 

1.we temporarilty drop syn client re-sends until reaches new process.

http://www.mail-archive.com/haproxy@formilux.org/msg06885.html

(docker supports internal iptables)

2.we gracefully restart process group via supervisorctl


Comments

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -