From 089b725f85d90393457a6e5d1676f4debac4c70d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Besson?= Date: Mon, 1 Jul 2024 10:54:24 +0100 Subject: [PATCH] PostgreSQL: set effective_cache_size and increase max_connections The first configuration change was found to be the critical parameter during the Rocky Linux 9 migration. The second one was bumped during the work on test122 --- ansible/group_vars/database-hosts.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ansible/group_vars/database-hosts.yml b/ansible/group_vars/database-hosts.yml index 7fc9ad22..767ef37b 100644 --- a/ansible/group_vars/database-hosts.yml +++ b/ansible/group_vars/database-hosts.yml @@ -38,3 +38,5 @@ postgresql_install_extensions: True postgresql_server_conf: shared_buffers: "{{ (ansible_memtotal_mb / 4) | int }}MB" + effective_cache_size: "{{ (ansible_memtotal_mb * 0.75 ) | int }}MB" + max_connections: 150