store-db add more appropriate db settings for current db hw
Signed-off-by: Ivan Folgueira Bande <ivansete@status.im>
This commit is contained in:
parent
e6b39e4b8f
commit
f85fc71b50
|
@ -32,6 +32,25 @@ postgres_ha_alter_system_settings:
|
||||||
max_locks_per_transaction: '2160'
|
max_locks_per_transaction: '2160'
|
||||||
autovacuum_work_mem: '{{ ((ansible_memtotal_mb * 0.1) * 1000) | int }}' # kB
|
autovacuum_work_mem: '{{ ((ansible_memtotal_mb * 0.1) * 1000) | int }}' # kB
|
||||||
|
|
||||||
|
## The following are obtained from https://pgtune.leopard.in.ua/ (8GB RAM 4CPUs SSD PG version 15)
|
||||||
|
max_connections: '300'
|
||||||
|
shared_buffers: '2GB'
|
||||||
|
effective_cache_size: '6GB'
|
||||||
|
maintenance_work_mem: '512MB'
|
||||||
|
checkpoint_completion_target: '0.9'
|
||||||
|
wal_buffers: '16MB'
|
||||||
|
default_statistics_target: '100'
|
||||||
|
random_page_cost: '1.1'
|
||||||
|
effective_io_concurrency: '200'
|
||||||
|
work_mem: '3495kB'
|
||||||
|
huge_pages: 'off'
|
||||||
|
min_wal_size: '2GB'
|
||||||
|
max_wal_size: '8GB'
|
||||||
|
max_worker_processes: '4'
|
||||||
|
max_parallel_workers_per_gather: '2'
|
||||||
|
max_parallel_workers: '4'
|
||||||
|
max_parallel_maintenance_workers: '2'
|
||||||
|
|
||||||
# Open PostgreSQL Port
|
# Open PostgreSQL Port
|
||||||
open_ports_default_comment: '{{ postgres_ha_service_name }}'
|
open_ports_default_comment: '{{ postgres_ha_service_name }}'
|
||||||
open_ports_default_chain: 'SERVICES'
|
open_ports_default_chain: 'SERVICES'
|
||||||
|
|
Loading…
Reference in New Issue