fix memory relations, cache lower than cont mem limit

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2019-08-09 21:55:47 -04:00
parent a6d0b26a08
commit 54feca95f3
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
1 changed files with 2 additions and 2 deletions

View File

@ -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