X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/52722858a6bccd05484db3af0bc7580f01e5d1b1..c307ef550f5c5c6e7c8be3ad7d85d3815e0ed0ca:/cookbooks/tile/templates/default/renderd.conf.erb diff --git a/cookbooks/tile/templates/default/renderd.conf.erb b/cookbooks/tile/templates/default/renderd.conf.erb index bb1a28c45..d29c58aa7 100644 --- a/cookbooks/tile/templates/default/renderd.conf.erb +++ b/cookbooks/tile/templates/default/renderd.conf.erb @@ -2,12 +2,12 @@ [renderd] socketname=/var/run/renderd/renderd.sock -num_threads=<%= node[:cpu][:total] - 2 %> +num_threads=<%= node.cpu_cores - 1 %> tile_dir=/srv/tile.openstreetmap.org/tiles stats_file=/var/run/renderd/renderd.stats [mapnik] -plugins_dir=/usr/lib/mapnik/input +plugins_dir=/usr/lib/mapnik/<%= node[:tile][:mapnik] %>/input font_dir=/usr/share/fonts font_dir_recurse=true <% node[:tile][:styles].each do |name,details| -%>