]> git.openstreetmap.org Git - chef.git/blobdiff - roles/tilecache.rb
Move cron customisation for tile caches to the tools cookbook
[chef.git] / roles / tilecache.rb
index ac17511a02eb85aa98869574b9fbbf2a0a646610..dc6fadf7b70c3dea917d1dd9fd8b2b245d4c99ad 100644 (file)
@@ -20,7 +20,7 @@ default_attributes(
     :cache => {
       :proxy => {
         :enable => true,
-        :keys_zone => "proxy_cache_zone:64M",
+        :keys_zone => "proxy_cache_zone:128M"
       }
     }
   },
@@ -46,7 +46,13 @@ default_attributes(
     :network_local_port_range => {
       :comment => "Increase available local port range",
       :parameters => {
-        "net.ipv4.ip_local_port_range" => "1024\t65000"
+        "net.ipv4.ip_local_port_range" => "1024\t65535"
+      }
+    },
+    :network_tcp_timewait_reuse => {
+      :comment => "Allow tcp timewait reuse",
+      :parameters => {
+        "net.ipv4.tcp_tw_reuse" => 1
       }
     },
     :kernel_tfo_listen_enable => {
@@ -68,6 +74,15 @@ default_attributes(
         "kernel.sched_wakeup_granularity_ns" => "15000000"
       }
     }
+  },
+  :tools => {
+    :cron => {
+      :load => {
+        :nice => 19,
+        :io_scheduling_class => "best-effort",
+        :io_scheduling_priority => 7
+      }
+    }
   }
 )