]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/tile/templates/default/renderd.conf.erb
Deploy 2021 State of the Map site
[chef.git] / cookbooks / tile / templates / default / renderd.conf.erb
index 4ce29d976ca88288f1f1ca6521cced0d9ed0ae83..d02202d066d0ab656989a0c698df5d1ce090c994 100644 (file)
@@ -2,16 +2,12 @@
 
 [renderd]
 socketname=/var/run/renderd/renderd.sock
-num_threads=<%= node[:cpu][:total] - 2 %>
+num_threads=<%= node[:cpu][:total] - 1 %>
 tile_dir=/srv/tile.openstreetmap.org/tiles
 stats_file=/var/run/renderd/renderd.stats
 
 [mapnik]
-<% if node[:lsb][:release].to_f >= 14.04 -%>
-plugins_dir=/usr/lib/mapnik/2.2/input
-<% else -%>        
-plugins_dir=/usr/lib/mapnik/input
-<% end -%>        
+plugins_dir=/usr/lib/mapnik/3.0/input
 font_dir=/usr/share/fonts
 font_dir_recurse=true
 <% node[:tile][:styles].each do |name,details| -%>