Merge pull request #5 from status-im/restart
use the default (more aggressive) container restart policy
This commit is contained in:
commit
9e5c0beec8
|
@ -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
|
||||
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue