Nginxmgr — Nginx upstream pool manager(just-another.net)
just-another.net
Nginxmgr — Nginx upstream pool manager
http://just-another.net/2009/10/21/nginxmgr-nginx-upstream-pool-manager/
3 comments
I can't reach the site, so the Google cache can be found here: http://74.125.155.132/search?q=cache:just-another.net/2009/1...
Maybe he is live-testing it..
Site was down due to large traffic spike. It's back up and running now.
This program appears to rewrite the upstream section of the nginx config based on health checks / XML-RPC requests and gracefully reloads nginx via its built-in handler.
Getting native side-channel support for upstream configuration changes is a recurring topic on the nginx mailing list, but nobody's bitten that one off yet. When we switched from a complex health monitoring / keepalived / LVS setup to nginx a few years ago, I was sure we'd want this too. But it turns out that nginx's simple upstream round-robin works quite well against our PHP app servers. When we want to take one offline, we just gracefully kill its webserver and nginx fast-fails it and moves on, no interruption to in-process requests.