function update_<%= style %>
{
render_old \
- --timestamp=${timestamp} \
+ --timestamp=${timestamp} \
--tile-dir=/srv/tile.openstreetmap.org/tiles \
--socket=/var/run/renderd/renderd.sock \
- --num-threads=<%= ( node[:cpu][:total] - 2 ) / 2 %> \
+ --num-threads=<%= @threads %> \
--map="<%= style %>" \
- --max-load=70 \
+ --max-load=<%= node.cpu_cores - 1 %> \
--min-zoom=0 --max-zoom=12
}