Skip to content

Commit be0447e

Browse files
alpergundogduclaude
andcommitted
fix(decdn_node): make the systemd watchdog opt-in
The role cannot tell whether the binary it installs heartbeats, and a binary that does not is killed every period, so decdn_node_watchdog_sec defaults to 0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 8efa265 commit be0447e

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

  • ansible/roles/decdn_node/defaults

‎ansible/roles/decdn_node/defaults/main.yml‎

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -406,13 +406,14 @@ decdn_cli_bin: /usr/local/bin/decdn
406406
# templates/decdn-node.service.j2.
407407
decdn_node_stop_timeout_sec: 300
408408

409-
# systemd WatchdogSec for the node unit (seconds). The node heartbeats from its
410-
# tokio runtime every half period, so a runtime whose workers never yield is
411-
# killed and restarted instead of staying `active` while it serves nothing. It
412-
# needs a decdn-node build that sends the heartbeat: an older binary sends none
413-
# and is killed every period, so set 0 to omit the watchdog for such a binary.
414-
# See templates/decdn-node.service.j2.
415-
decdn_node_watchdog_sec: 60
409+
# systemd WatchdogSec for the node unit (seconds); 0 omits the watchdog. The node
410+
# heartbeats from its tokio runtime every half period, so a runtime whose workers
411+
# never yield is killed and restarted instead of staying `active` while it serves
412+
# nothing. It needs a decdn-node build that sends the heartbeat (decdn/decdn#2145):
413+
# an older binary sends none and is killed every period. The role cannot tell which
414+
# build it installs, so the watchdog is opt-in: set e.g. 60 once the deployed binary
415+
# heartbeats. See templates/decdn-node.service.j2.
416+
decdn_node_watchdog_sec: 0
416417

417418
# --- Lifecycle: backup + decommission (tasks_from: backup / decommission) -------
418419
# Only read by those entry points (playbooks/backup.yml, playbooks/decommission.yml);

0 commit comments

Comments
 (0)