From aad00cd68c41d392875a7d458ebe04cbf9796673 Mon Sep 17 00:00:00 2001 From: Paul Norman Date: Tue, 14 Jun 2016 14:00:55 -0700 Subject: [PATCH] Explicitly set number of osm2pgsql processes --- cookbooks/tile/templates/default/replicate.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.5