From 6b1ef3fe223c57a1eb96ce0360edb46fb219c530 Mon Sep 17 00:00:00 2001 From: Grzegorz Adam Kowalski Date: Fri, 15 Mar 2019 19:29:40 +0100 Subject: [PATCH] Update postgresql.custom.conf --- postgresql.custom.conf | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/postgresql.custom.conf b/postgresql.custom.conf index 8bf2399..07a530c 100644 --- a/postgresql.custom.conf +++ b/postgresql.custom.conf @@ -6,3 +6,19 @@ min_wal_size = 1GB max_wal_size = 2GB work_mem = 32MB maintenance_work_mem = 256MB + +# Suggested settings from +# https://github.com/openstreetmap/chef/blob/master/roles/tile.rb#L38-L45 + +max_connections = 250 +temp_buffers = 32MB +work_mem = 128MB +wal_buffers = 1024kB +wal_writer_delay = 500ms +commit_delay = 10000 +checkpoint_segments = 60 +max_wal_size = 2880MB +random_page_cost = 1.1 +track_activity_query_size = 16384 +autovacuum_vacuum_scale_factor = 0.05 +autovacuum_analyze_scale_factor = 0.02