run an action every 30 seconds

michalkraus nginx-forum at
Tue Feb 8 14:35:09 MSK 2011

Thanks for your options

> 3) Use a heartbeat solution -

I have API between the Nginx and the second (control) server. I use RPC
interface. I need just send a RPC request (with status infrmation) to
the control server. I think that heartbeat is too robust.

> 4) Use cron to start a script which does the test, sleeps for 30s,
then does 
> the test again, then dies (to be restarted by cron
> at the next minute)

This option seems to be the best but is any possibility the nginx to do
it in its own?

Posted at Nginx Forum:,173142,173166#msg-173166

More information about the nginx mailing list