configuration-templates – Diff between revs 27 and 134
?pathlinks?
Rev 27 | Rev 134 | |||
---|---|---|---|---|
Line 1... | Line 1... | |||
1 | ########################################################################### |
1 | ########################################################################### |
|
2 | ## Copyright (C) Wizardry and Steamworks 2017 - License: GNU GPLv3 ## |
2 | ## Copyright (C) Wizardry and Steamworks 2017 - License: GNU GPLv3 ## |
|
3 | ########################################################################### |
3 | ########################################################################### |
|
Line 4... | Line 4... | |||
4 | |
4 | |
|
5 | check process varnish with pidfile /var/run/varnishd.pid |
5 | check process varnishd matching varnishd |
|
6 | start program = "/etc/init.d/varnish start" |
6 | start program = "/etc/init.d/varnish start" |
|
7 | stop program = "/etc/init.d/varnish stop" |
7 | stop program = "/etc/init.d/varnish stop" |
|
8 | if cpu > 60% for 2 cycles then alert |
8 | #if cpu > 60% for 2 cycles then alert |
|
9 | if cpu > 80% for 5 cycles then restart |
9 | #if cpu > 80% for 5 cycles then restart |
|
10 | if totalmem > 200.0 MB for 5 cycles then restart |
10 | #if totalmem > 512 MB for 5 cycles then restart |
|
11 | if children > 250 then restart |
11 | #if children > 250 then restart |
|
12 | if loadavg(5min) greater than 10 for 8 cycles then stop |
12 | #if loadavg(5min) greater than 10 for 8 cycles then stop |
|
13 | # set to ip and port of varnish |
13 | # set to ip and port of varnish |
|
14 | if failed host 127.0.0.1 port 80 protocol http then restart |
14 | #if failed host 127.0.0.1 port 80 protocol tcp then restart |
|
15 | # enable only if you wish monit to stop trying to restart |
15 | # enable only if you wish monit to stop trying to restart |
|
16 | # if 3 restarts within 5 cycles then timeout |
16 | # if 3 restarts within 5 cycles then timeout |