Nginxmgr — Nginx upstream pool manager
just-another.net
just-another.net
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.