mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
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:
committed by
Pierre-Yves Chibon
parent
d0930d95dc
commit
b4f82f8e38
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user