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:
Jakub Sokołowski 2024-01-09 14:05:26 +01:00
parent 6b5b7046af
commit 32662b3bd8
No known key found for this signature in database
GPG Key ID: FE65CD384D5BF7B4
2 changed files with 7 additions and 1 deletions

View File

@ -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'

View File

@ -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