postgresql: configure max_connections
This commit is contained in:
parent
3f353ad072
commit
d64193287d
|
@ -19,6 +19,7 @@ The **patch** part changes is incremented if multiple releases happen the same m
|
||||||
* php: add a way to choose which version to install using sury repository
|
* php: add a way to choose which version to install using sury repository
|
||||||
* userlogrotate: create role separated from packweb-apache
|
* userlogrotate: create role separated from packweb-apache
|
||||||
* postfix: Add task for enable mailgraph on packmail
|
* postfix: Add task for enable mailgraph on packmail
|
||||||
|
* postgresql: configure max_connections
|
||||||
* apache: add tash for enable mailgraph on default vhost and index.html
|
* apache: add tash for enable mailgraph on default vhost and index.html
|
||||||
* php: add variables php_version when sury is activated for each Debian version
|
* php: add variables php_version when sury is activated for each Debian version
|
||||||
* varnish: add variable varnish_update_config to disable configuration update
|
* varnish: add variable varnish_update_config to disable configuration update
|
||||||
|
|
|
@ -7,6 +7,7 @@ postgresql_shared_buffers: "{{ (ansible_memtotal_mb * 0.25) | int }}MB"
|
||||||
postgresql_work_mem: 8MB
|
postgresql_work_mem: 8MB
|
||||||
postgresql_random_page_cost: 1.5
|
postgresql_random_page_cost: 1.5
|
||||||
postgresql_effective_cache_size: "{{ (ansible_memtotal_mb * 0.5) | int }}MB"
|
postgresql_effective_cache_size: "{{ (ansible_memtotal_mb * 0.5) | int }}MB"
|
||||||
|
postgresql_max_connections: None
|
||||||
|
|
||||||
# Binding
|
# Binding
|
||||||
postgresql_listen_addresses:
|
postgresql_listen_addresses:
|
||||||
|
|
|
@ -9,6 +9,9 @@ checkpoint_segments = 30
|
||||||
{% else %}
|
{% else %}
|
||||||
max_wal_size = 15GB
|
max_wal_size = 15GB
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if postgresql_max_connections and postgresql_max_connections | int > 0 %}
|
||||||
|
max_connections = {{ postgresql_max_connections }}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
checkpoint_completion_target = 0.9
|
checkpoint_completion_target = 0.9
|
||||||
random_page_cost = {{ postgresql_random_page_cost }}
|
random_page_cost = {{ postgresql_random_page_cost }}
|
||||||
|
|
Loading…
Reference in a new issue