node-db: fix shared memory calculation

We were casting `0.3` to `int` which results in `0`.

Resolves:
https://github.com/status-im/infra-waku/issues/28

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2024-10-30 11:41:54 +01:00
parent 9fb93086ef
commit f869ae1199
No known key found for this signature in database
GPG Key ID: FE65CD384D5BF7B4
2 changed files with 3 additions and 3 deletions

View File

@ -55,8 +55,8 @@ postgres_system_setting_stage:
## Autovacuum
autovacuum: 'off'
# For each 16GB of ram, 1 GB is set to share memory
postgres_share_memory: '{{ ansible_memtotal_mb / 16 | int }}m'
# Use the 10% of RAM for shared memory
postgres_ha_share_memory: '{{ (ansible_memtotal_mb * 0.1) | int }}m'
# Consul
postgres_ha_consul_check_interval: '60s'

View File

@ -26,7 +26,7 @@
- name: infra-role-postgres-ha
src: git@github.com:status-im/infra-role-postgres-ha.git
version: fbc3376e790c526bb401edb1a6a1ffdc4a4d1ae1
version: 0e166b76b4875f2413f093c264470bee3361b3f4
- name: infra-role-nim-waku-sonda
src: git@github.com:status-im/infra-role-nim-waku-sonda.git