X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/7502f15bd8b731b68e722092f8e5dbd9269dba58..ba65c5618d3113373c0f3306ce993917fc2af23a:/cookbooks/tilecache/recipes/default.rb diff --git a/cookbooks/tilecache/recipes/default.rb b/cookbooks/tilecache/recipes/default.rb index 1068b1b0d..1cf0e7b2e 100644 --- a/cookbooks/tilecache/recipes/default.rb +++ b/cookbooks/tilecache/recipes/default.rb @@ -19,10 +19,11 @@ require "ipaddr" -include_recipe "ssl" -include_recipe "squid" -include_recipe "nginx" include_recipe "fail2ban" +include_recipe "munin" +include_recipe "nginx" +include_recipe "squid" +include_recipe "ssl" package "apache2" do action :remove @@ -109,6 +110,16 @@ template "/etc/logrotate.d/squid" do mode 0o644 end +# Configure cron with lower cpu and IO priority +systemd_service "cron-load" do + service "cron" + dropin "load" + nice 19 + io_scheduling_class "best-effort" + io_scheduling_priority 7 + notifies :restart, "service[cron]" +end + nginx_site "default" do action [:delete] end