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

Cliff Wells cliff at develix.com
Wed Apr 30 21:41:04 MSD 2008


On Wed, 2008-04-30 at 05:03 -0700, Mansoor Peerbhoy wrote:
> Manlio,
> 
> Yes, I see what you're saying. 
> It is always going to be a problem if the listener cannot consume the
> data fast enough. 

I think if Nginx only updated counters (similar to OpenVZ's bean
counters) this would not be an issue and would work well with the shared
memory/virtual file approach (and fits better with the idea of event
monitoring vs logging/post-mortem).  Rather than a stream of data you
have a "file" of fixed size that's constantly updated. It also
simplifies the parsing of the data by an external application. 

If a virtual file system (like /proc) were used, then it should also be
possible to use inotify (or similar) from external apps to be notified
of events (although this might be too busy).

Regards,
Cliff






More information about the nginx mailing list