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.