]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/tilecache/recipes/default.rb
tilecache: switch port 80 traffic to nginx
[chef.git] / cookbooks / tilecache / recipes / default.rb
index 1068b1b0d3903841215a4872758e960431eeda3f..63de8a529f92a3b85802077c3161d2e14fb18f91 100644 (file)
@@ -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