]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/tile/templates/default/replicate.erb
Adjust tile expiry thresholds
[chef.git] / cookbooks / tile / templates / default / replicate.erb
index 37925c52fd90dceaf81db005c09c3a6c10e80763..1b6c61bbc96f588ee5810a9f6e71b9cfce5ffd86 100644 (file)
@@ -68,9 +68,9 @@ do
 
             # Apply the changes to the database
 <% if node[:tile][:node_file] -%>
-            osm2pgsql --slim --append --flat-nodes=<%= node[:tile][:node_file] %> ${file}
+            osm2pgsql --slim --append --number-processes=1 --flat-nodes=<%= node[:tile][:node_file] %> ${file}
 <% else -%>
-            osm2pgsql --slim --append ${file}
+            osm2pgsql --slim --append --number-processes=1 ${file}
 <% end -%>
 
             # No need to rollback now