From: Tom Hughes Date: Fri, 14 Jun 2024 21:59:00 +0000 (+0100) Subject: Really set a limit on expiring long way segments X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/50c5e663bcc99a2a01c0a2e7886b75cb99659089 Really set a limit on expiring long way segments --- diff --git a/cookbooks/tile/recipes/default.rb b/cookbooks/tile/recipes/default.rb index aec9e1b81..eab19d75d 100644 --- a/cookbooks/tile/recipes/default.rb +++ b/cookbooks/tile/recipes/default.rb @@ -577,18 +577,6 @@ template "/usr/local/bin/replicate-post" do mode "755" end -osm2pgsql_arguments = %w[ - --number-processes=1 - --log-progress=false - --expire-tiles=13-19 - --expire-segment-length=90000 - --expire-output=/var/lib/replicate/dirty-tiles.txt - ] - -osm2pgsql_arguments.append("--multi-geometry") if node[:tile][:database][:multi_geometry] -osm2pgsql_arguments.append("--hstore") if node[:tile][:database][:hstore] -osm2pgsql_arguments.append("--tag-transform-script=#{node[:tile][:database][:tag_transform_script]}") if node[:tile][:database][:tag_transform_script] - systemd_service "replicate" do description "Rendering database replication service" after "postgresql.service" diff --git a/cookbooks/tile/templates/default/replicate.erb b/cookbooks/tile/templates/default/replicate.erb index 88917dff2..f0fa89961 100644 --- a/cookbooks/tile/templates/default/replicate.erb +++ b/cookbooks/tile/templates/default/replicate.erb @@ -11,6 +11,7 @@ do --number-processes=1 \ --log-progress=false \ --expire-tiles=13-19 \ + --expire-segment-length=90000 \ --expire-output=/var/lib/replicate/dirty-tiles.txt \ <% if node[:tile][:database][:multi_geometry] -%> --multi-geometry \