add a memory vs cache size check to avoid container getting killed

details: https://github.com/ethereum/go-ethereum/issues/19859

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2019-07-19 10:34:38 -04:00
parent 3e2f1f879a
commit b78e128d91
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
2 changed files with 7 additions and 0 deletions

6
tasks/checks.yml Normal file
View File

@ -0,0 +1,6 @@
---
- name: Verify memory and cache sizes
assert:
that:
- cont_mem_limit > geth_cache
fail_msg: 'Memory limit cant be lower than cache'

View File

@ -1,4 +1,5 @@
---
- import_tasks: checks.yml
- import_tasks: generate.yml
- import_tasks: trusted_peers.yml
- import_tasks: container.yml