Created
August 21, 2009 17:32
-
-
Save ideaoforder/172211 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
check process workling0 with pidfile YOUR_WEB_APP/log/workling0.pid | |
group YOUR_APP_NAME | |
start program = "/home/YOUR_USER/scripts/workling start 0" | |
stop program = "/home/YOUR_USER/scripts/workling stop 0" | |
if totalmem > 60 Mb then restart | |
if cpu is greater than 60% for 2 cycles then alert | |
if cpu > 80% for 5 cycles then restart | |
if loadavg(5min) greater than 10 for 8 cycles then restart | |
if 3 restarts within 5 cycles then timeout |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment