]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/tile/templates/default/renderd.conf.erb
Use ruby cookbook to install ruby for prometheus
[chef.git] / cookbooks / tile / templates / default / renderd.conf.erb
index 60206d1ceb09f1a578fde9ed003e9acf41466f28..d29c58aa7728f9512a6fe22d2dac67269319ed9e 100644 (file)
@@ -2,7 +2,7 @@
 
 [renderd]
 socketname=/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=<%= node.cpu_cores - 1 %>
 tile_dir=/srv/tile.openstreetmap.org/tiles
 stats_file=/var/run/renderd/renderd.stats