]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/tile/templates/default/render-lowzoom.erb
Update to tilelog 1.6.1
[chef.git] / cookbooks / tile / templates / default / render-lowzoom.erb
index de64cbcea758b2629cbc7950ad64833a5185e8b6..834eecc3040b79ea0b00b7e341de2e404ff3b39d 100644 (file)
@@ -13,12 +13,12 @@ timestamp=$(date +%s)
 function update_<%= style %>
 {
   render_old \
-    --timestamp=${timestamp} \        
+    --timestamp=${timestamp} \
     --tile-dir=/srv/tile.openstreetmap.org/tiles \
     --socket=/var/run/renderd/renderd.sock \
-    --num-threads=<%= node[:cpu][:total] - 2 %> \
+    --num-threads=<%= node.cpu_cores - 1 %> \
     --map="<%= style %>" \
-    --max-load=70 \
+    --max-load=<%= node.cpu_cores - 1 %> \
     --min-zoom=0 --max-zoom=12
 }