Upgrades, Backups & Retirement#

Canary-First Upgrades#

Always pin exact package versions (==0.5.0a1 for pre-releases) and upgrade one canary node before rolling out to the rest of the fleet:

  1. Upgrade fleetmesh-node (and fleetmesh-strfry if used) on the canary node and restart meshnode (for container rollouts, update the image tag in your Podman Quadlet or Kubernetes Deployment).

  2. Verify meshnode health <dir> reports no trouble reported with 0 handler failures and 0 tick failures.

  3. Verify meshctl watch --json reports "wrong": [] and the expected protocol digest.

  4. Roll the same version out to the remaining fleet nodes and re-run meshctl watch across the full fleet.

Backups#

Back up the node state directory (/var/lib/fleetmesh):

  • keys.json — cryptographic node identity (must stay encrypted at rest)

  • config.json — node configuration, relays, visibility, and limits

  • Local SQLite store files — peer state, grants, receipts, and coverage

Stop the node briefly (or use SQLite online backup) before copying database files so snapshots are consistent. Never store unencrypted backups of keys.json or operator.key on shared storage.

Graceful Node Retirement#

To remove a node from service cleanly, run meshnode retire:

sudo -u meshnode /opt/fleetmesh/.venv/bin/meshnode retire /var/lib/fleetmesh \
  --reason "decommissioning host"

This hands over asserted shards, withdraws coverage claims from the relays, and stops the node. Add --revoke to also publish a kind 11802 revocation event permanently retiring the node’s key so no successor inherits its standing.