use the default (more aggressive) container restart policy

This commit is contained in:
Ștefan Talpalaru 2020-07-10 19:11:15 +02:00
parent cfba480e1e
commit 8237011e22
No known key found for this signature in database
GPG Key ID: CBF7934204F1B6F9
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'