From d1feb3c5baa074d824fd67142de6b43b60dc10dd Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 14 Dec 2016 09:37:50 +0000 Subject: [PATCH] Set CPU alert thresholds for tile caches Hopefully this will warn us when nginx spins out of control. --- roles/tilecache.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/roles/tilecache.rb b/roles/tilecache.rb index 438f61992..86a494285 100644 --- 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", -- 2.43.2