From e4e9f1ca3c431a9331c6292394df524c1b20dcf7 Mon Sep 17 00:00:00 2001 From: Jakub Kadlcik Date: Fri, 14 Feb 2025 12:26:16 +0100 Subject: [PATCH] copr-fe: use lower shared_buffers value on STG The instance has only 4G of RAM so PostgreSQL fails to start with: FATAL: could not map anonymous shared memory: Cannot allocate memory --- roles/copr/frontend/tasks/psql_setup.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/copr/frontend/tasks/psql_setup.yml b/roles/copr/frontend/tasks/psql_setup.yml index 81ea2db159..6b10b77496 100644 --- a/roles/copr/frontend/tasks/psql_setup.yml +++ b/roles/copr/frontend/tasks/psql_setup.yml @@ -60,7 +60,7 @@ lineinfile: path: /var/lib/pgsql/data/postgresql.conf regexp: '^shared_buffers =' - line: 'shared_buffers = 8096MB' + line: 'shared_buffers = {% if devel %}1024MB{% else %}8096MB{% endif %}' notify: Restart postgresql tags: - config