dont set --cache if not specified, it messes with things
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
04fd3a574c
commit
9591893b87
|
@ -39,4 +39,5 @@ For the rest see the [`defaults/main.yml`](/defaults/main.yml) config file.
|
|||
|
||||
# Known Issues
|
||||
|
||||
Currently only 3 networks are supported: `mainnet`, `ropsten`, and `goerli`
|
||||
* Currently only 3 networks are supported: `mainnet`, `ropsten`, `goerli`, and `yolov1`.
|
||||
* Setting `--cache` values higher than 1/3rd of available memory will cause trouble syncing.
|
||||
|
|
|
@ -93,10 +93,8 @@ geth_consul_default_tags:
|
|||
geth_consul_extra_tags: []
|
||||
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) / 1204) | round | int) * 1024 | int }}'
|
||||
# Geth cache size. WARNING: Values higher than 1GB cause issues.
|
||||
geth_cache_size: ~
|
||||
# Container memory limits
|
||||
geth_cont_mem_ratio: 0.6
|
||||
geth_cont_mem_limit: '{{ (ansible_memtotal_mb * geth_cont_mem_ratio|float) | int }}'
|
||||
|
|
|
@ -42,10 +42,12 @@
|
|||
{% if geth_metrics_enabled %}
|
||||
--metrics
|
||||
{% endif %}
|
||||
{% if geth_cache_size %}
|
||||
--cache={{ geth_cache_size }}
|
||||
{% endif %}
|
||||
--nousb
|
||||
--extradata={{ geth_extra_data }}
|
||||
--verbosity={{ geth_log_level_id }}
|
||||
--cache={{ geth_cache_size }}
|
||||
--maxpeers={{ geth_max_peers }}
|
||||
--maxpendpeers="{{ geth_max_pend_peers }}"
|
||||
--port={{ geth_port }}
|
||||
|
|
Loading…
Reference in New Issue