diff --git a/defaults/main.yml b/defaults/main.yml index 9a71db0..2ecd862 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -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 }}'