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:39:34 +01:00
parent de2092e971
commit 4f2020945d
No known key found for this signature in database
GPG Key ID: FE65CD384D5BF7B4
2 changed files with 2 additions and 3 deletions

View File

@ -27,5 +27,4 @@ open_ports_list:
- { port: '{{ postgres_ha_metrics_exporter_cont_port }}', ipset: 'hq.metrics', iifname: 'wg0' }
# Use the 30% of RAM for shared memory
postgres_share_memory: '{{ ansible_memtotal_mb * 0.30 | int }}m'
postgres_ha_share_memory: '{{ (ansible_memtotal_mb * 0.3) | int }}m'

View File

@ -26,4 +26,4 @@
- name: infra-role-postgres-ha
src: git@github.com:status-im/infra-role-postgres-ha.git
version: e48e129d8b92280cc171dae8959897062fb15a5f
version: 0e166b76b4875f2413f093c264470bee3361b3f4