New variable to set the max connections.
This commit is contained in:
parent
e8e9e32f82
commit
e54345a927
defaults
|
@ -13,6 +13,7 @@ psql_db_host: localhost
|
|||
psql_db_port: 5432
|
||||
psql_db_size_w: 150000000
|
||||
psql_db_size_c: 170000000
|
||||
psql_max_connections: 1024
|
||||
psql_listen_on_ext_int: False
|
||||
psql_use_alternate_data_dir: False
|
||||
# Deb/Ubuntu
|
||||
|
@ -52,7 +53,7 @@ psql_el_scl_packages:
|
|||
- python-psycopg2
|
||||
|
||||
psql_conf_parameters:
|
||||
- { name: 'max_connections', value: '100', set: 'True' }
|
||||
- { name: 'max_connections', value: '{{ psql_max_connections }}', set: 'True' }
|
||||
- { name: 'shared_buffers', value: '{{ (ansible_memtotal_mb / 4) | int }}MB', set: 'True' }
|
||||
- { name: 'work_mem', value: '{{ ((ansible_memtotal_mb * 1024) / (400 * ansible_processor_vcpus)) | int }}kB', set: 'True' }
|
||||
- { name: 'maintenance_work_mem', value: '{{ (ansible_memtotal_mb / 8) | int }}MB', set: 'True' }
|
||||
|
|
Loading…
Reference in New Issue