From: Paul Norman Date: Tue, 20 Feb 2018 14:35:37 +0000 (-0800) Subject: Set autovacuum scale factors for tile servers X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/67a74cd7644359f67bd5f80ae58fc451c6467d8a?hp=27e33fa61307e73ca2b81bc16ac09699878970ce Set autovacuum scale factors for tile servers Reducing these factors helps make sure autovacuum runs often enough and keeps bloat down. Closes #152 --- diff --git a/roles/tile.rb b/roles/tile.rb index 6c7da5a01..b0f7c930e 100644 --- a/roles/tile.rb +++ b/roles/tile.rb @@ -43,7 +43,9 @@ default_attributes( :checkpoint_segments => "60", :max_wal_size => "2880MB", :random_page_cost => "1.1", - :track_activity_query_size => "16384" + :track_activity_query_size => "16384", + :autovacuum_vacuum_scale_factor => "0.05", + :autovacuum_analyze_scale_factor => "0.02" } } },