use multiples of 1024 for --cache flag
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
94ba389e8f
commit
04fd3a574c
|
@ -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 }}'
|
||||
|
|
Loading…
Reference in New Issue