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
|
# 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_extra_tags: []
|
||||||
geth_consul_tags: '{{ 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 size. WARNING: Values higher than 1GB cause issues.
|
||||||
# Geth cache usage limit
|
geth_cache_size: ~
|
||||||
geth_cache_ratio: 0.4
|
|
||||||
geth_cache_size: '{{ (((ansible_memtotal_mb * geth_cache_ratio|float) / 1204) | round | int) * 1024 | int }}'
|
|
||||||
# Container memory limits
|
# Container memory limits
|
||||||
geth_cont_mem_ratio: 0.6
|
geth_cont_mem_ratio: 0.6
|
||||||
geth_cont_mem_limit: '{{ (ansible_memtotal_mb * geth_cont_mem_ratio|float) | int }}'
|
geth_cont_mem_limit: '{{ (ansible_memtotal_mb * geth_cont_mem_ratio|float) | int }}'
|
||||||
|
|
|
@ -42,10 +42,12 @@
|
||||||
{% if geth_metrics_enabled %}
|
{% if geth_metrics_enabled %}
|
||||||
--metrics
|
--metrics
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if geth_cache_size %}
|
||||||
|
--cache={{ geth_cache_size }}
|
||||||
|
{% endif %}
|
||||||
--nousb
|
--nousb
|
||||||
--extradata={{ geth_extra_data }}
|
--extradata={{ geth_extra_data }}
|
||||||
--verbosity={{ geth_log_level_id }}
|
--verbosity={{ geth_log_level_id }}
|
||||||
--cache={{ geth_cache_size }}
|
|
||||||
--maxpeers={{ geth_max_peers }}
|
--maxpeers={{ geth_max_peers }}
|
||||||
--maxpendpeers="{{ geth_max_pend_peers }}"
|
--maxpendpeers="{{ geth_max_pend_peers }}"
|
||||||
--port={{ geth_port }}
|
--port={{ geth_port }}
|
||||||
|
|
Loading…
Reference in New Issue