store: set retention policy using size instead of time
Using time causes the DB to be filled quickly. Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
2988df6c5b
commit
97544ad634
|
@ -47,7 +47,10 @@ nim_waku_store_message_db_name: 'nim-waku'
|
||||||
nim_waku_store_message_db_user: 'nim-waku'
|
nim_waku_store_message_db_user: 'nim-waku'
|
||||||
nim_waku_store_message_db_pass: '{{lookup("bitwarden", "fleets/status/"+stage+"/db/nim-waku")}}'
|
nim_waku_store_message_db_pass: '{{lookup("bitwarden", "fleets/status/"+stage+"/db/nim-waku")}}'
|
||||||
nim_waku_store_message_db_url: 'postgres://{{ nim_waku_store_message_db_user}}:{{ nim_waku_store_message_db_pass }}@store-db-01.{{ ansible_domain }}.wg:5432/{{nim_waku_store_message_db_name}}'
|
nim_waku_store_message_db_url: 'postgres://{{ nim_waku_store_message_db_user}}:{{ nim_waku_store_message_db_pass }}@store-db-01.{{ ansible_domain }}.wg:5432/{{nim_waku_store_message_db_name}}'
|
||||||
nim_waku_store_message_retention_policy: 'time:2592000' # 30 days
|
nim_waku_store_message_retention_policy_map:
|
||||||
|
test: 'size:250GB'
|
||||||
|
staging: 'size:80GB'
|
||||||
|
nim_waku_store_message_retention_policy: '{{ nim_waku_store_message_retention_policy_map[stage] }}'
|
||||||
|
|
||||||
# DNS Discovery
|
# DNS Discovery
|
||||||
nim_waku_dns_disc_enabled: true
|
nim_waku_dns_disc_enabled: true
|
||||||
|
|
Loading…
Reference in New Issue