projects
/
chef.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
37dae2f
)
Set CPU alert thresholds for tile caches
author
Tom Hughes
<tom@compton.nu>
Wed, 14 Dec 2016 09:37:50 +0000
(09:37 +0000)
committer
Tom Hughes
<tom@compton.nu>
Wed, 14 Dec 2016 09:37:50 +0000
(09:37 +0000)
Hopefully this will warn us when nginx spins out of control.
roles/tilecache.rb
patch
|
blob
|
history
diff --git
a/roles/tilecache.rb
b/roles/tilecache.rb
index 438f61992d27d2395a15ef38f5b3a61c6add9f6c..86a4942856cd527abc17e2a497378f64408fd13e 100644
(file)
--- a/
roles/tilecache.rb
+++ b/
roles/tilecache.rb
@@
-12,6
+12,13
@@
default_attributes(
:apt => {
:sources => ["nginx"]
},
+ :munin => {
+ :plugins => {
+ :cpu => {
+ :user => { :warning => 100, :critical => 200 }
+ }
+ }
+ },
:sysctl => {
:network_conntrack_time_wait => {
:comment => "Only track completed connections for 30 seconds",