From 54feca95f38912697c630277490f2c3c6e4d12ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Fri, 9 Aug 2019 21:55:47 -0400 Subject: [PATCH] fix memory relations, cache lower than cont mem limit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jakub SokoĊ‚owski --- ansible/group_vars/faucet-master.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ansible/group_vars/faucet-master.yml b/ansible/group_vars/faucet-master.yml index 39b7fd6..da43cfb 100644 --- a/ansible/group_vars/faucet-master.yml +++ b/ansible/group_vars/faucet-master.yml @@ -19,10 +19,10 @@ geth_sync_mode: '{{ (faucet_network == "goerli") | ternary("full", "light") }}' geth_log_level_name: info # 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 }}' # 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 cont_restart_policy: on-failure