-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathconfig.ini
More file actions
86 lines (78 loc) · 2.16 KB
/
Copy pathconfig.ini
File metadata and controls
86 lines (78 loc) · 2.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
[processWatchdog]
udp_port = 12345
periodic_reboot = OFF
[app:Communicator]
start_delay = 10
heartbeat_delay = 60
heartbeat_interval = 20
cmd = /usr/bin/python test_child.py 1 crash
# Restart policy with exponential backoff (optional)
# max_retries = 5
# base_delay = 1
# stop_timeout = 30
[app:Bot]
start_delay = 20
heartbeat_delay = 90
heartbeat_interval = 30
cmd = /usr/bin/python test_child.py 2 noheartbeat
# Restart policy with exponential backoff (optional)
# max_retries = 5
# base_delay = 1
# stop_timeout = 30
[app:Publisher]
start_delay = 35
heartbeat_delay = 70
heartbeat_interval = 16
cmd = /usr/bin/python test_child.py 3 crash
# Restart policy with exponential backoff (optional)
# max_retries = 5
# base_delay = 1
# stop_timeout = 30
[app:Alert]
start_delay = 35
heartbeat_delay = 130
heartbeat_interval = 13
cmd = /usr/bin/python test_child.py 4 noheartbeat
# Restart policy with exponential backoff (optional)
# max_retries = 5
# base_delay = 1
# stop_timeout = 30
[app:BackoffTest]
start_delay = 5
heartbeat_delay = 10
heartbeat_interval = 60
cmd = /usr/bin/python test_child.py 5 crash
# Restart policy with exponential backoff
max_retries = 3
base_delay = 2
stop_timeout = 30
[app:ProgressTest]
start_delay = 5
heartbeat_delay = 10
heartbeat_interval = 15
progress_timeout = 30
cmd = /usr/bin/python test_child.py 6 crash 10
# Send heartbeat and progress signal (+) every 10 seconds
# progress_timeout=30 in watchdog means restart if no progress in 30 seconds
[app:FlapTest]
start_delay = 5
heartbeat_delay = 30
heartbeat_interval = 15
cmd = /usr/bin/python test_child.py 7 crash
# Circuit-breaker: 3 failures in 5 minutes opens circuit
circuit_breaker_threshold = 3
circuit_breaker_window = 300
# Cooldown: wait 2 minutes before auto-resume, require manual ack after 2 cooldowns
cooldown_period = 120
cooldown_manual_ack_threshold = 2
[app:CircuitTest]
start_delay = 5
heartbeat_delay = 30
heartbeat_interval = 15
cmd = /usr/bin/python test_child.py 8 crash
# Circuit-breaker: 2 failures in 5 minutes opens circuit
circuit_breaker_threshold = 2
circuit_breaker_window = 300
# Cooldown: auto-resume after 2 minutes (no manual ack)
cooldown_period = 120
cooldown_manual_ack_threshold = 0