Add options max_connections and shared_buffers
This commit is contained in:
parent
be64c4523d
commit
18befd9978
2 changed files with 4 additions and 2 deletions
|
|
@ -3,6 +3,8 @@ postgresql:
|
||||||
enable: True
|
enable: True
|
||||||
keep_days: 3
|
keep_days: 3
|
||||||
listen_addresses: localhost
|
listen_addresses: localhost
|
||||||
|
max_connections: 100
|
||||||
|
shared_buffers: 128MB
|
||||||
allowed_hosts: {}
|
allowed_hosts: {}
|
||||||
dbs: {}
|
dbs: {}
|
||||||
users: {}
|
users: {}
|
||||||
|
|
|
||||||
|
|
@ -62,7 +62,7 @@ listen_addresses = '{{ postgresql.listen_addresses }}' # what IP address(es) to
|
||||||
# defaults to 'localhost'; use '*' for all
|
# defaults to 'localhost'; use '*' for all
|
||||||
# (change requires restart)
|
# (change requires restart)
|
||||||
port = 5432 # (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)
|
#superuser_reserved_connections = 3 # (change requires restart)
|
||||||
unix_socket_directories = '/var/run/postgresql' # comma-separated list of directories
|
unix_socket_directories = '/var/run/postgresql' # comma-separated list of directories
|
||||||
# (change requires restart)
|
# (change requires restart)
|
||||||
|
|
@ -119,7 +119,7 @@ ssl_key_file = '/etc/ssl/private/ssl-cert-snakeoil.key'
|
||||||
|
|
||||||
# - Memory -
|
# - Memory -
|
||||||
|
|
||||||
shared_buffers = 128MB # min 128kB
|
shared_buffers = {{ postgresql.shared_buffers }} # min 128kB
|
||||||
# (change requires restart)
|
# (change requires restart)
|
||||||
#huge_pages = try # on, off, or try
|
#huge_pages = try # on, off, or try
|
||||||
# (change requires restart)
|
# (change requires restart)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue