Merge pull request #5 from status-im/restart

use the default (more aggressive) container restart policy
This commit is contained in:
Ștefan Talpalaru 2020-07-14 14:28:14 +02:00 committed by GitHub
commit 9e5c0beec8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 10 deletions

View File

@ -23,12 +23,6 @@ beacon_node_rpc_port: 9900
beacon_node_mem_limit: '{{ (ansible_memtotal_mb * 0.6) | int }}'
beacon_node_mem_reserve: '{{ (ansible_memtotal_mb * 0.4) | int }}'
# container restart policy
beacon_node_restart_condition: 'on-failure'
beacon_node_restart_max_attempts: 3
beacon_node_restart_delay_sec: 10
beacon_node_restart_window_sec: 120
# general container management
compose_recreate: false

View File

@ -22,10 +22,7 @@
reservations:
memory: '{{ beacon_node_mem_reserve }}M'
restart_policy:
condition: '{{ beacon_node_restart_condition }}'
max_attempts: '{{ beacon_node_restart_max_attempts }}'
delay: '{{ beacon_node_restart_delay_sec }}s'
window: '{{ beacon_node_restart_window_sec }}s'
condition: 'any'
ports:
- '127.0.0.1:{{ beacon_node_rpc_port }}:{{ beacon_node_rpc_port }}/tcp'
- '{{ beacon_node_metrics_port }}:{{ beacon_node_metrics_port }}/tcp'