Operational runbook
What you need to know
An operational runbook is a tested sequence for recognizing a problem, narrowing its cause, mitigating it and checking recovery. It turns telemetry into decisions rather than just dashboards.
By the end, you can: define signals and escalation; test failure and recovery.
Calculate a synthetic success indicator
function successRate(ok:number,total:number){ if(!Number.isInteger(ok)||!Number.isInteger(total)||ok<0||total<0||ok>total||!total)return null; return ok/total;}console.log(successRate(98,100));console.log(successRate(0,0));Expected behavior: 0.98 and null. Empty windows are unknown.
How it works
Define a service-level indicator (SLI), such as successful eligible catalog requests divided by all eligible requests in a specified time window. A service-level objective (SLO) is a target for that indicator. State which outcomes count and use a denominator; zero eligible requests means insufficient evidence. Use a bounded observation window and a minimum sample count for the teaching alert. Real alerting often combines several windows and burn-rate signals; this fixture is a simple decision model. When an alert fires, compare error rates, latency, request volume, deployment version and dependency health. Follow a verified mitigation path, record an owner and preserve diagnostics. Confirm recovery with fresh observations and functional checks. Do not suppress a signal by dropping failed requests from the denominator.
Write a scoped runbook decision
{ "signal": "catalog-success", "window": "5 minutes", "minRequests": 20, "target": 0.99, "mitigation": "hold rollout and inspect dependency errors", "recovery": "two fresh passing windows and route smoke check"}Expected behavior: These are illustrative policy values, not universal monitoring defaults.
Common mistake
Do not equate no traffic or missing telemetry with perfect availability. Do not call rollback successful just because an alert stops firing.
Practice and verification
Apply the fixture decision model to 100/100, 98/100 and 0/0. Describe who investigates, which version and traces to inspect, what rollback cannot fix, and how to verify recovery.
Scope: Proposed Next.js 16.x / React 19, App Router with Cache Components disabled unless noted. Framework and browser examples are staged, not executed. Synthetic numbers are not measured performance or actual provider rates.
Further reading: Production · Instrumentation · Sre