use multiples of 1024 for --cache flag

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2020-10-21 15:29:44 +02:00
parent 94ba389e8f
commit 04fd3a574c
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ geth_consul_tags: '{{ geth_consul_default_tags + geth_consul_extra_tags }}'
# resources limits to avoid killing the host
# Geth cache usage limit
geth_cache_ratio: 0.4
geth_cache_size: '{{ (ansible_memtotal_mb * geth_cache_ratio|float) | int }}'
geth_cache_size: '{{ (((ansible_memtotal_mb * geth_cache_ratio|float) / 1204) | round | int) * 1024 | int }}'
# Container memory limits
geth_cont_mem_ratio: 0.6
geth_cont_mem_limit: '{{ (ansible_memtotal_mb * geth_cont_mem_ratio|float) | int }}'