]> git.openstreetmap.org Git - chef.git/commitdiff
Set load average limit for re-renders to number of CPU threads
authorTom Hughes <tom@compton.nu>
Wed, 30 Dec 2020 10:05:07 +0000 (10:05 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 30 Dec 2020 10:05:07 +0000 (10:05 +0000)
cookbooks/tile/templates/default/render-lowzoom.erb
cookbooks/tile/templates/default/update-lowzoom.erb

index 390244a62f4be4472ce5bdf61497cad05eb85125..95e4ed6e8f943610752b21d2e67cb02f96ef0efe 100644 (file)
@@ -18,7 +18,7 @@ function update_<%= style %>
     --socket=/var/run/renderd/renderd.sock \
     --num-threads=<%= node[:cpu][:total] - 1 %> \
     --map="<%= style %>" \
-    --max-load=70 \
+    --max-load=<%= node[:cpu][:total] %> \
     --min-zoom=0 --max-zoom=12
 }
 
index ce91eb48fafa98e902ee11299899d7cd83b36742..85f32c13d3688527f20383b3180b7eceb376568c 100644 (file)
@@ -14,7 +14,7 @@ function update_tiles
     --socket=/var/run/renderd/renderd.sock \
     --num-threads=<%= node[:cpu][:total] - 1 %> \
     --map="<%= @style %>" \
-    --max-load=70 \
+    --max-load=<%= node[:cpu][:total] %> \
     --min-zoom=0 --max-zoom=12
 }