X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/5f7a83de0937e7e0f11f028400aa86b8511a49e6..e20fc2961c6d4dca7387cd0b5a6dc61a8fef4664:/cookbooks/tilecache/recipes/default.rb diff --git a/cookbooks/tilecache/recipes/default.rb b/cookbooks/tilecache/recipes/default.rb index 1068b1b0d..63de8a529 100644 --- a/cookbooks/tilecache/recipes/default.rb +++ b/cookbooks/tilecache/recipes/default.rb @@ -109,6 +109,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