]> git.openstreetmap.org Git - chef.git/commitdiff
Increase number of CPUs used for background renders
authorTom Hughes <tom@compton.nu>
Fri, 21 Mar 2014 15:05:49 +0000 (15:05 +0000)
committerTom Hughes <tom@compton.nu>
Fri, 21 Mar 2014 15:08:47 +0000 (15:08 +0000)
cookbooks/tile/templates/default/render-lowzoom.erb
cookbooks/tile/templates/default/update-lowzoom.erb

index de2a3ddc42f6e0f18aa512a7a3cfbc3c1998f8ed..1db85a965f75c0d0f005e9df64233d1a0b7ae92b 100644 (file)
@@ -11,7 +11,7 @@ render_list \
   --all --force \
   --tile-dir=/srv/tile.openstreetmap.org/tiles \
   --socket=/var/run/renderd/renderd.sock \
-  --num-threads=<%= ( node[:cpu][:total] - 2 ) / 4 %> \
+  --num-threads=<%= ( node[:cpu][:total] - 2 ) / 2 %> \
   --map="<%= style %>" \
   --max-load=70 \
   --min-zoom=0 --max-zoom=12
index 17229e94fd03f99f2be7ad82bd7f406a99d0d407..a9a55cb48bd19a50408fc80af36d3e6765c63d6e 100644 (file)
@@ -10,7 +10,7 @@ render_list \
   --all --force \
   --tile-dir=/srv/tile.openstreetmap.org/tiles \
   --socket=/var/run/renderd/renderd.sock \
-  --num-threads=<%= ( node[:cpu][:total] - 2 ) / 4 %> \
+  --num-threads=<%= ( node[:cpu][:total] - 2 ) / 2 %> \
   --map="<%= @style %>" \
   --max-load=70 \
   --min-zoom=0 --max-zoom=12