Running in production
Shipping is not the end of a change. This page covers how to see what production is doing, how to handle alerts and incidents, how to recover, and how to control running costs and temporary resources.
Signals
The service owner defines the signals, what they mean, and the alerts on them.
- Tag signals with the release, environment, time, cohort, and a correlation ID.
- Show counts and distributions, not only averages.
- Give each dashboard one question to answer. Document its units, filters, delay, sampling, and blind spots.
- Before using a signal to gate a rollout, confirm that the changed code emits it, that the cohort can be selected, and that data is arriving on time.
An empty query can mean no failures, no traffic, a wrong filter, or broken instrumentation. Find out which. Missing data is inconclusive, never healthy.
Production queries are read-only by default, with limits on time range, result size, and cost. Large scans, fault injection, and benchmarks against production need their own authority.
Alerts and triage
An alert record names the service, the signal, the rule, the window, the severity, the destination, the owner, where to start diagnosing, and the permitted first response.
- On a new alert or report, look for an existing incident or task first. Assign one work owner.
- Keep incidents, work items, and slow trends apart. Do not notify again about a state that has not changed.
- A green dashboard never downgrades a credible customer report.
- Fix noisy or ignored alerts instead of living with them.
- Monitor the monitoring. Record the last successful check. When an assignment ends, stop or transfer its schedules and remove alerts nobody needs.
Investigating behavior
Separate the user's goal, the reported behavior, the confirmed failure, each hypothesis, and the proposed fix. State what evidence would support or contradict each hypothesis. Change one variable at a time, and keep contradicting evidence in the record.
Reproduce outside production first. End with one result: confirmed defect, supported hypothesis, product opportunity, expected behavior, or unresolved. Investigate production behavior gives the steps.
Incidents
Declare an incident when harm is happening now and needs coordinated containment: broad customer impact, a security concern, a correctness failure that is spreading or corrupting data, or loss of critical visibility. A defect that a normal fix can handle is a bug, not an incident. The product defines its incident criteria and severity levels.
An incident has one human incident lead, one incident record, and a communication owner. Agents investigate many hypotheses in parallel, but only the lead's chosen action changes production. An incident never grants unlimited authority. Emergency access names its approver, its resources, and its expiry.
Restoring service, repairing affected customers, and preventing a repeat are three separate results. Each closes on its own evidence. Respond to an incident gives the steps.
Choosing a recovery
Recovery operations do different things. Pick the one that matches the failure.
| Operation | What it does | Watch for |
|---|---|---|
| Disable a flag | Removes the behavior from users. | Running work may continue. Data already written stays. |
| Revert | Creates a new source change that undoes another one. | It still needs integration and deployment. |
| Roll back | Runs an earlier release or configuration. | The old release may not understand data written by the new one. |
| Restore data | Replaces state from a backup. | Writes after the backup are lost. The data owner assesses that loss before the restore. |
| Forward fix | Ships a new change that corrects the problem. | Use only when no undo is safe, with a plan the incident lead accepts. It needs the full verification path. |
None of these undoes an external effect. A sent email stays sent and a charge stays charged. Reconcile external effects separately, and before replaying any queued work, check what already happened. A correct release does not make an old queue safe to replay.
The release owner records the recovery operation, its trigger, and who runs it before exposure grows. If there is no safe undo, require an accepted forward-fix plan instead.
Command success is not recovery. Check the running version, the critical user journeys, the guardrail signals, and the data.
After a recovery, do not turn the behavior back on. The release owner decides when to expose it again, through a new rollout.
External effects
Charges, messages, provisioning, and irreversible changes need a stable operation identity, so a retry does not repeat them. Never retry them blindly. Before retrying after an unclear result, check whether the first attempt took effect. Bound every retry. A fallback that changes meaning, exposure, quality, or cost needs authority of its own.
For each external service, record its purpose, its contract, the credential scope, its rate and spending limits, and how it fails.
Backups
- List the critical data and configuration, including external stores, queues, keys, and provider state. Name an owner for restoring each.
- The product sets how much data loss and downtime each service can tolerate.
- Confirm that the credentials and keys needed to restore survive the failure they protect against.
- Rehearse restores in isolation on a regular schedule. Measure the time and the data lost, check invariants, and confirm writes resume.
- Before any action that risks data loss, confirm the target and take a snapshot where possible. Stop on any mismatch.
Reliability and cost
The service owner defines service indicators for correctness, availability, latency, and durability, each with its population, window, objective, and the response when the error budget runs out. An exhausted error budget does not authorize production changes by itself.
Track saturation, demand, queue age, and provider limits. Prefer a clear failure or controlled degradation to unbounded retries.
Attribute infrastructure and agent costs to their owners. A spending alert is not a cap. Stop or escalate before a budget runs out.
Temporary resources
Every temporary resource needs a purpose, an owner, and a removal condition. That includes jobs, monitors, previews, permissions, and flags. Keep an inventory of runtimes, dependencies, services, data stores, integrations, and agent tools, with owners and end-of-support dates.
Retiring a feature or service has its own procedure: Retire a feature.