BotNetwork

Process supervision choices for bots

systemd/pm2/k8s each need SIGTERM handlers and restart budgets

Guide1 min readUpdated

Why it matters

Systemd/pm2/k8s each need SIGTERM handlers and restart budgets.

Practical steps

  1. Describe the deploy surface for devops process supervision (process, env, healthcheck, rollback).
  2. Implement systemd/pm2/k8s each need SIGTERM handlers and restart budgets behind a feature flag or canary when risk is high.
  3. Emit structured logs/metrics that show devops process supervision succeeding or failing in staging.
  4. Automate a smoke test that hits devops process supervision after each deploy.
  5. Write a one-page runbook: start, stop, rollback, and who to page.

Watch out for

  • Copy-pasting outdated snippets for devops process supervision without re-reading current official docs.
  • Shipping devops process supervision to production without a staging rehearsal and a documented rollback.

Related comparisons and tools