From: Tom Hughes Date: Wed, 14 Dec 2016 09:37:50 +0000 (+0000) Subject: Set CPU alert thresholds for tile caches X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/d1feb3c5baa074d824fd67142de6b43b60dc10dd Set CPU alert thresholds for tile caches Hopefully this will warn us when nginx spins out of control. --- 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",