From d67d15fcf378d03d164e26484a577de5f97af105 Mon Sep 17 00:00:00 2001 From: red Date: Sun, 8 Jun 2025 19:35:35 -0400 Subject: [PATCH] update pg config according to pgtune + pleroma docs --- manifests/postgres/configmap.yaml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/manifests/postgres/configmap.yaml b/manifests/postgres/configmap.yaml index 1681808..d9d4634 100644 --- a/manifests/postgres/configmap.yaml +++ b/manifests/postgres/configmap.yaml @@ -30,19 +30,20 @@ data: # DB Version: 17 # OS Type: linux # DB Type: web - # Total Memory (RAM): 4 GB + # Total Memory (RAM): 8 GB + # Connections num: 20 # Data Storage: ssd - max_connections = 200 - shared_buffers = 1GB - effective_cache_size = 3GB - maintenance_work_mem = 256MB + max_connections = 20 + shared_buffers = 2GB + effective_cache_size = 6GB + maintenance_work_mem = 512MB checkpoint_completion_target = 0.9 wal_buffers = 16MB default_statistics_target = 100 random_page_cost = 1.1 effective_io_concurrency = 200 - work_mem = 5041kB + work_mem = 74898kB huge_pages = off min_wal_size = 1GB max_wal_size = 4GB