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:
parent
9fb93086ef
commit
f869ae1199
|
@ -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'
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue