postgresql_server: adjust connections only for db-koji01, leave pagure01 and others back at 750

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2020-01-05 19:47:31 +00:00 committed by Pierre-Yves Chibon
parent d0930d95dc
commit b4f82f8e38

View file

@ -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.