From fb57ee8b369d2f22e822b7c8065be3c3c72cc124 Mon Sep 17 00:00:00 2001 From: Dan Notestein <dan@syncad.com> Date: Sun, 19 Jan 2025 20:29:23 +0000 Subject: [PATCH] Update pgtune.conf --- pgtune.conf | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/pgtune.conf b/pgtune.conf index b80b4fc..3c6085d 100644 --- a/pgtune.conf +++ b/pgtune.conf @@ -4,13 +4,13 @@ maintenance_work_mem = 4GB work_mem = 1024MB checkpoint_completion_target = 0.9 -checkpoint_timeout = 5min +#checkpoint_timeout = 5min wal_buffers = 128MB random_page_cost = 1.01 effective_io_concurrency = 200 -min_wal_size = 1GB -max_wal_size = 8GB +#min_wal_size = 1GB +#max_wal_size = 8GB wal_level = minimal max_wal_senders = 0 @@ -25,3 +25,10 @@ idle_in_transaction_session_timeout = 60s max_parallel_maintenance_workers = 4 default_statistics_target = 500 +#Changes based on pg_gather analysis, appears to improve sync performance by 10%, +#but post-analysis suggests more improvement via parameter tweaking is possible +bgwriter_lru_maxpages = 700 #directly suggested by pg_gather +#Remaining values I just doubled original values as no specific value was suggested +checkpoint_timeout = 600 +min_wal_size = 2GB +max_wal_size = 16GB \ No newline at end of file -- GitLab