fix memory relations, cache lower than cont mem limit
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
a6d0b26a08
commit
54feca95f3
|
@ -19,10 +19,10 @@ geth_sync_mode: '{{ (faucet_network == "goerli") | ternary("full", "light") }}'
|
||||||
geth_log_level_name: info
|
geth_log_level_name: info
|
||||||
|
|
||||||
# adjust cache size to available memory
|
# adjust cache size to available memory
|
||||||
mem_cache_ratio: 0.3
|
mem_cache_ratio: 0.2
|
||||||
geth_cache: '{{ (ansible_memtotal_mb * mem_cache_ratio|float) | int }}'
|
geth_cache: '{{ (ansible_memtotal_mb * mem_cache_ratio|float) | int }}'
|
||||||
# has to be higher than mem_cache_ratio
|
# has to be higher than mem_cache_ratio
|
||||||
cont_mem_ratio: 0.2
|
cont_mem_ratio: 0.3
|
||||||
|
|
||||||
# don't auto-restart contianer on out-of-memory error
|
# don't auto-restart contianer on out-of-memory error
|
||||||
cont_restart_policy: on-failure
|
cont_restart_policy: on-failure
|
||||||
|
|
Loading…
Reference in New Issue