Repository navigation
Description
What are you trying to do?
Page on a decdn-node that is stuck in boot.
decdn/decdn#2821, which fixes decdn/decdn#2819, changes when the node's /metrics listener comes up:
- The listener binds before the RPC preflight and the boot chain reads, so a booting node answers scrapes.
- It adds the gauge
decdn_node_boot_ready. The gauge reads0from process start, and1from thenode runtime readybanner onward.
This changes what the existing rules see:
DecdnNodeDownno longer fires for a node that is stuck in boot. Its scrape succeeds, soup == 1. Without a new rule, a stuck boot pages nothing. Example: on 2026-11-01 all 8 fleet nodes were in a boot loop for about 22 min.DecdnRpcUnhealthyneeds no change. #2821 seedsdecdn_rpc_healthyto1as soon as the RPC preflight passes, so a slow boot does not read as an RPC outage.DecdnNoActiveStreams(15 m) andDecdnDhtRoutingTableEmpty(30 m) now also fire on a stuck boot. That is accurate for a node that serves nothing. Keep them.
Timing: the gauge is unreleased. This must land in the same rollout as the decdn release that carries #2821, not before (the rule that a panel names only a released metric applies) and not after (the DecdnNodeDown gap).
What would help?
1. Alert in monitoring/decdn-node/prometheus-alerts.yml, next to DecdnRpcUnhealthy. It matches the recommended alert in adr/appendix-observability.md § Node / Process Metrics:
- alert: DecdnNodeBootStuck
expr: max_over_time(decdn_node_boot_ready[15m]) == 0
for: 10m
labels:
component: node # or whichever component the node-lifecycle rules use
severity: warning
annotations:
runbook_url: "https://github.com/decdn/decdn/blob/main/docs/runbook.md#rpc-unreachable"
summary: "{{ $labels.instance }} has not finished boot"
description: |
decdn_node_boot_ready has read 0 for 10 m with no 1 sample in the
last 15 m. If decdn_chain_boot_read_retries_total rises, a boot chain
read is retrying. If it does not rise, the node is stuck before the
chain reads: read the first WARN or ERROR line after "deCDN node starting".When it fires:
| Case | Fires after |
|---|---|
First boot (the window holds only 0 samples) |
about 10 m, which matches the node's 10-minute boot-read budget |
Restart of a node that was ready (the last 1 stays in the window for 15 m) |
up to 25 m |
max_over_time keeps the rule firing through the gaps that a crash loop leaves in the series. A node that exits before its first scrape has no series at all. up == 0 (DecdnNodeDown) already covers that case.
2. promtool cases in prometheus-alerts_test.yml:
| Series | Expected |
|---|---|
0 for 25 m |
fires |
a 1 sample inside the 15 m window |
silent |
ready (1), then restarted and stuck at 0 |
fires about 25 m after the last 1 |
3. Panel in monitoring/decdn-node/dashboard-chain.json. The panel that plots decdn_chain_boot_read_retries_total (refId C) gets a new target, refId E:
min(decdn_node_boot_ready{deployment_environment="$env",region=~"$region",instance=~"$instance"})
with the legend "min boot ready". Follow .claude/skills/grafana-dashboards/SKILL.md.
4. Verify with make lint-helm, which runs promtool.
Deploy path
Helm chart (the chart renders monitoring/decdn-node/ through files/monitoring)
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity