From 4f2020945da3f280588d0f5e30a3b1328432e8ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Wed, 30 Oct 2024 11:39:34 +0100 Subject: [PATCH] node-db: fix shared memory calculation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- ansible/group_vars/node-db.yml | 3 +-- ansible/requirements.yml | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/ansible/group_vars/node-db.yml b/ansible/group_vars/node-db.yml index 3c036fe..049e961 100644 --- a/ansible/group_vars/node-db.yml +++ b/ansible/group_vars/node-db.yml @@ -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' diff --git a/ansible/requirements.yml b/ansible/requirements.yml index d5b94b9..f8e6e96 100644 --- a/ansible/requirements.yml +++ b/ansible/requirements.yml @@ -26,4 +26,4 @@ - name: infra-role-postgres-ha src: git@github.com:status-im/infra-role-postgres-ha.git - version: e48e129d8b92280cc171dae8959897062fb15a5f + version: 0e166b76b4875f2413f093c264470bee3361b3f4