Add options max_connections and shared_buffers

This commit is contained in:
Julian Rother 2022-09-22 12:07:33 +02:00
parent be64c4523d
commit 18befd9978
2 changed files with 4 additions and 2 deletions

View file

@ -3,6 +3,8 @@ postgresql:
enable: True
keep_days: 3
listen_addresses: localhost
max_connections: 100
shared_buffers: 128MB
allowed_hosts: {}
dbs: {}
users: {}

View file

@ -62,7 +62,7 @@ listen_addresses = '{{ postgresql.listen_addresses }}' # what IP address(es) to
# defaults to 'localhost'; use '*' for all
# (change requires restart)
port = 5432 # (change requires restart)
max_connections = 100 # (change requires restart)
max_connections = {{ postgresql.max_connections }} # (change requires restart)
#superuser_reserved_connections = 3 # (change requires restart)
unix_socket_directories = '/var/run/postgresql' # comma-separated list of directories
# (change requires restart)
@ -119,7 +119,7 @@ ssl_key_file = '/etc/ssl/private/ssl-cert-snakeoil.key'
# - Memory -
shared_buffers = 128MB # min 128kB
shared_buffers = {{ postgresql.shared_buffers }} # min 128kB
# (change requires restart)
#huge_pages = try # on, off, or try
# (change requires restart)