From b4f82f8e38ab3c2ffc8a11d1b8d44915422b50d4 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Sun, 5 Jan 2020 19:47:31 +0000 Subject: [PATCH] postgresql_server: adjust connections only for db-koji01, leave pagure01 and others back at 750 Signed-off-by: Kevin Fenzi --- roles/postgresql_server/templates/postgresql.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/postgresql_server/templates/postgresql.conf b/roles/postgresql_server/templates/postgresql.conf index bfc9727ad9..be0db201de 100644 --- a/roles/postgresql_server/templates/postgresql.conf +++ b/roles/postgresql_server/templates/postgresql.conf @@ -65,7 +65,11 @@ listen_addresses = '*' # what IP address(es) to listen on; # defaults to 'localhost', '*' = all # (change requires restart) port = 5432 # (change requires restart) +{% if ansible_hostname.startswith("db-koji01") %} max_connections = 2000 # (change requires restart) +{% else %} +max_connections = 750 # (change requires restart) +{% endif %} # Note: Increasing max_connections costs ~400 bytes of shared memory per # connection slot, plus lock space (see max_locks_per_transaction). You might # also need to raise shared_buffers to support more connections.