]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/tile/templates/default/render-lowzoom.erb
web: increase mod_evasive page count to allow iD tiled API requests
[chef.git] / cookbooks / tile / templates / default / render-lowzoom.erb
index c031813996da110addd58ab0b865889635f3f613..eb3e2e84e2fcb7691e8ff59c4668bdad0988eb3f 100644 (file)
@@ -16,9 +16,9 @@ function update_<%= style %>
     --timestamp=${timestamp} \
     --tile-dir=/srv/tile.openstreetmap.org/tiles \
     --socket=/var/run/renderd/renderd.sock \
-    --num-threads=<%= [4, node.dig('cpu', 'total').to_i - 1, node.dig('cpu', 'cores').to_i - 1].max %> \
+    --num-threads=<%= @threads %> \
     --map="<%= style %>" \
-    --max-load=<%= node[:cpu][:total] %> \
+    --max-load=<%= node.cpu_cores - 1 %> \
     --min-zoom=0 --max-zoom=12
 }