From 0e02c6d28da1edc38de92be222a2c6031b0813d2 Mon Sep 17 00:00:00 2001 From: khaledk2 Date: Mon, 3 Jun 2024 17:02:14 +0100 Subject: [PATCH] add effective_cache_size to postgresql_server_conf --- ansible/group_vars/database-hosts.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/ansible/group_vars/database-hosts.yml b/ansible/group_vars/database-hosts.yml index 7fc9ad22..3867eb6c 100644 --- a/ansible/group_vars/database-hosts.yml +++ b/ansible/group_vars/database-hosts.yml @@ -38,3 +38,4 @@ 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"