From 29362d5c4218cc3a12240c2fde07408678a0a107 Mon Sep 17 00:00:00 2001
From: Dan Notestein <dan@syncad.com>
Date: Mon, 3 Feb 2025 01:56:39 +0000
Subject: [PATCH] Update pgtune.conf based on more pg_gather results

---
 pgtune.conf | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/pgtune.conf b/pgtune.conf
index 3c6085d..7053ffb 100644
--- a/pgtune.conf
+++ b/pgtune.conf
@@ -1,7 +1,7 @@
 shared_buffers = 16GB
 effective_cache_size = 48GB
 maintenance_work_mem = 4GB
-work_mem = 1024MB
+work_mem = 64MB
 
 checkpoint_completion_target = 0.9
 #checkpoint_timeout = 5min
@@ -27,8 +27,7 @@ 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
+bgwriter_lru_maxpages = 7000
+checkpoint_timeout = 60min
 min_wal_size = 2GB
-max_wal_size = 16GB
\ No newline at end of file
+max_wal_size = 24GB
\ No newline at end of file
-- 
GitLab