Repository navigation
Description
Problem
Every deployment path pins a release line (X.Y) and installs the line's newest release at deploy time; nothing re-runs afterwards. An Ansible or cloud-init host stays on the release it was deployed with until someone runs the playbook again, and decdn self-update is explicitly off there (it would replace the CLI outside the install and fail the next deploy's version check). The chart and Compose need a rollout restart or a new digest by hand.
So after every decdn/decdn release, each operator has to be nudged. Pre-mainnet, where wire-breaking releases are allowed and the testnet is redeployed rather than migrated, a node that misses a release is a node that stops serving.
Proposal
An opt-in auto-update channel for the Ansible and cloud-init paths (decdn_node_auto_update: true), implemented as what the deploy already does, re-run on a timer:
- A systemd timer (daily, with a random delay) that resolves the pinned line's newest signed release, and when it differs from the installed one: downloads and verifies the signature the role already verifies, swaps the binary and restarts the unit with
systemctl(SIGTERM is the daemon's graceful drain, as the lifecycle doc says;decdn node drainis not for systemd-managed nodes). The restart hygiene follows the operator upgrade appendix so a just-advertised blob is not refused mid-pull. - Holds: an exact
decdn_node_version: "X.Y.Z"disables the timer, as it already disables line-following at deploy time. Adecdn_node_update_windowlimits the hours it may restart. - Observability: the timer writes a journal line and bumps a textfile metric (
decdn_node_update_last_run,decdn_node_update_installed_version), and the monitoring rules get an alert for a host more than one release behind its line for 48 h, so a failed update is seen without the operator checking. - The sponsord and onramp roles get the same timer under the same flag, since they pin the same release line.
- For the chart: document
image.tag: X.Y+ an updater (Keel or Flux image automation) as the equivalent; Compose keeps its digest pin and gets ascripts/compose-update.shthat bumps it from the line.
Default off in this release, default on in the next once the fleet has run it for a cycle.
Alternatives considered
- Node self-update built into
decdn-node. The daemon replacing its own binary under a package manager or an image is the failure mode the devops docs already warn about; the deploy tooling owns the install, so it owns the update. - Keep nudging operators on Discord. That is the current state.
Related
- CLI
self-updateand update check (decdn/decdn): cli: decdn self-update and an update check on run decdn#2537 - Operator self-serve, the other halves: Faucet for beta TOKEN behind the onramp captcha, and
decdn setupsupport decdn#2597, cli:decdn node earningsprints settled and owed USDC per period decdn#2598
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity