From 66c7df9a53c1d40336536a7ec9a5e8e1f17c4f00 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Sat, 12 Oct 2019 19:52:03 +0000 Subject: [PATCH] postgresql / db-koji01: more tweaks Signed-off-by: Kevin Fenzi --- roles/postgresql_server/templates/postgresql.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/postgresql_server/templates/postgresql.conf b/roles/postgresql_server/templates/postgresql.conf index 95fa94ce80..00320a8561 100644 --- a/roles/postgresql_server/templates/postgresql.conf +++ b/roles/postgresql_server/templates/postgresql.conf @@ -113,7 +113,7 @@ max_connections = 750 # (change requires restart) shared_buffers = {{ shared_buffers }} # min 128kB or max_connections*16kB # (change requires restart) -#temp_buffers = 8MB # min 800kB +temp_buffers = 32MB # min 800kB #max_prepared_transactions = 5 # can be 0 or more # (change requires restart) # Note: Increasing max_prepared_transactions costs ~600 bytes of shared memory @@ -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 = 8GB +work_mem = 32MB 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 = 200 +effective_io_concurrency = 1