store-db: add Write Ahead Log size limits
Related to: https://github.com/status-im/infra-role-postgres-ha/issues/3 Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
6b5b7046af
commit
32662b3bd8
|
@ -22,6 +22,12 @@ postgres_ha_databases:
|
|||
user: 'nim-waku'
|
||||
pass: '{{lookup("bitwarden", "fleets/shards/"+stage+"/db/nim-waku")}}'
|
||||
|
||||
# Avoid exceeding volume size with WAL log.
|
||||
postgres_alter_system_settings:
|
||||
checkpoint_timeout: '5min'
|
||||
max_wal_size: '1GB'
|
||||
min_wal_size: '80MB'
|
||||
|
||||
# Open PostgreSQL Port
|
||||
open_ports_default_comment: '{{ postgres_ha_service_name }}'
|
||||
open_ports_default_chain: 'SERVICES'
|
||||
|
|
|
@ -35,5 +35,5 @@
|
|||
|
||||
- name: infra-role-postgres-ha
|
||||
src: git@github.com:status-im/infra-role-postgres-ha.git
|
||||
version: c647a9f57deb791f1be724fe768be7bc9bf64921
|
||||
version: 9fbe3851b902f9873441c2b26a6d3a7e9d1525c7
|
||||
scm: git
|
||||
|
|
Loading…
Reference in New Issue