Feature request: Run a script when upstream detected down/up

Cliff Wells cliff at develix.com
Mon Apr 28 21:21:16 MSD 2008


On Mon, 2008-04-28 at 08:44 -0700, Rt Ibmer wrote:
> I am using Amazon EC2 with nginx primarily for load balancing and
> proxying requests using proxy_pass.  In this EC2 environment upstream
> servers can fail without warning.
> 
> It would be a fantastic edition to nginx to have it run a backend
> shell script when it detects that it needs to skip over an upstream
> server because it is not responding in accordance with
> proxy_next_upstream.

This sounds like a job for a heartbeat monitor, not a web server.  What
happens if you decide to restart the backend process on one of your
upstream servers?  Would you still want your script run?

Regards,
Cliff






More information about the nginx mailing list