From: Paul Norman Date: Tue, 14 Jun 2016 21:00:55 +0000 (-0700) Subject: Explicitly set number of osm2pgsql processes X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/aad00cd68c41d392875a7d458ebe04cbf9796673 Explicitly set number of osm2pgsql processes --- diff --git a/cookbooks/tile/templates/default/replicate.erb b/cookbooks/tile/templates/default/replicate.erb index 37925c52f..1b6c61bbc 100644 --- a/cookbooks/tile/templates/default/replicate.erb +++ b/cookbooks/tile/templates/default/replicate.erb @@ -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