From 14af1f594e50956c5b07fb5538f68673c50e857a Mon Sep 17 00:00:00 2001 From: Mar Alegre Date: Mon, 12 Dec 2022 19:27:29 -0500 Subject: [PATCH] reduce resources used by postgres to allow memory for other processes --- nextcloud/assets/postgresql/postgresql.conf | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/nextcloud/assets/postgresql/postgresql.conf b/nextcloud/assets/postgresql/postgresql.conf index a9e97e9..b2025a9 100644 --- a/nextcloud/assets/postgresql/postgresql.conf +++ b/nextcloud/assets/postgresql/postgresql.conf @@ -5,20 +5,20 @@ # DB Version: 13 # OS Type: linux # DB Type: web -# Total Memory (RAM): 16 GB +# Total Memory (RAM): 8 GB # CPUs num: 6 # Data Storage: ssd max_connections = 200 -shared_buffers = 4GB -effective_cache_size = 12GB -maintenance_work_mem = 1GB +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 = 6990kB +work_mem = 3495kB min_wal_size = 1GB max_wal_size = 4GB max_worker_processes = 6