From: Tom Hughes Date: Mon, 18 Feb 2019 18:19:39 +0000 (+0000) Subject: Merge remote-tracking branch 'github/pull/219' X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/fda7ee22b72154e9c8c04cb7ec3f3a08d119b50a?hp=9cdc1bd6e278b40af5624626dd70b16b2d8d280c Merge remote-tracking branch 'github/pull/219' --- diff --git a/cookbooks/stats/templates/default/awstats.cron.erb b/cookbooks/stats/templates/default/awstats.cron.erb index 5d081e619..e5bafafff 100644 --- a/cookbooks/stats/templates/default/awstats.cron.erb +++ b/cookbooks/stats/templates/default/awstats.cron.erb @@ -1,5 +1,5 @@ # DO NOT EDIT - This file is being maintained by Chef <% @sites.each_with_index do |site,index| -%> -0 <%= "%02d" % [ 8 + index * 2 ] %> * * <%= site[:days] %> www-data /usr/lib/cgi-bin/awstats.pl -config=<%= site[:name] %> -update > /dev/null +0 <%= "%02d" % [ 8 + index * 2 ] %> * * <%= site[:days] %> www-data /usr/bin/nice -n 20 /usr/lib/cgi-bin/awstats.pl -config=<%= site[:name] %> -update > /dev/null <% end -%> diff --git a/roles/base.rb b/roles/base.rb index 3fab5ba8b..d680fddb1 100644 --- a/roles/base.rb +++ b/roles/base.rb @@ -51,7 +51,10 @@ default_attributes( }, :network_backlog => { :comment => "Increase maximum backlog for incoming network packets", - :parameters => { "net.core.netdev_max_backlog" => "2500" } + :parameters => { + "net.core.netdev_max_backlog" => "2500", + "net.core.netdev_budget" => "600" + } }, :network_conntrack_established => { :comment => "Only track established connections for four hours",