From 184f4c93bc10a21fed0165b42303cba47d94cdf0 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Fri, 11 Oct 2019 22:32:28 +0000 Subject: [PATCH] postgresql / db_koji01: adjust stuff to hopefully give us good backups. Signed-off-by: Kevin Fenzi --- inventory/host_vars/db-koji01.phx2.fedoraproject.org | 4 ++-- roles/postgresql_server/templates/postgresql.conf | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/inventory/host_vars/db-koji01.phx2.fedoraproject.org b/inventory/host_vars/db-koji01.phx2.fedoraproject.org index 587e561e9c..39da3ec7d9 100644 --- a/inventory/host_vars/db-koji01.phx2.fedoraproject.org +++ b/inventory/host_vars/db-koji01.phx2.fedoraproject.org @@ -45,5 +45,5 @@ nrpe_procs_warn: 600 nrpe_procs_crit: 700 db_backup_dir: ['/backups'] -shared_buffers: "30GB" -effective_cache_size: "90GB" +shared_buffers: "15GB" +effective_cache_size: "45GB" diff --git a/roles/postgresql_server/templates/postgresql.conf b/roles/postgresql_server/templates/postgresql.conf index cbaaaaeb82..95fa94ce80 100644 --- a/roles/postgresql_server/templates/postgresql.conf +++ b/roles/postgresql_server/templates/postgresql.conf @@ -121,7 +121,7 @@ shared_buffers = {{ shared_buffers }} # min 128kB or max_connections*16kB # 8 MB is probably on the high side. We can probably do with 4MB. But we # were seeing a problem and we have the RAM so we're going to try this. -work_mem = 157286kB +work_mem = 8GB maintenance_work_mem = 2GB # min 1MB #max_stack_depth = 2MB # min 100kB @@ -504,4 +504,4 @@ default_text_search_config = 'pg_catalog.english' #custom_variable_classes = '' # list of custom variable class names # # Number of concurrent i/o operations at the same time. The default is 1. -effective_io_concurrency = 100 +effective_io_concurrency = 200