Release operations

Set release gates and rehearse incident response

Compare a limited rollout with a baseline, decide when to stop and leave a handoff another responder can act on.

Write the promotion and stop conditions

Before deployment, identify what the change could break and how that would look to a user. A new order validation rule might change which requests succeed, so the gate needs an accepted-order measure as well as a server error rate. Define the scope, observation window and minimum volume. Select signals that can be attributed to the candidate and the current version, and decide who can pause or reverse the rollout.

Write a recovery path for state changes. Sending traffic back to a previous version is straightforward only when that version still understands the data it receives. Test compatible schema transitions, capture what must be reconciled and identify changes that require a forward fix. Put the recovery action and its verification in the release note while the engineers who designed it are available.

Compare cohorts while protecting the full service

Start with a limited population of traffic or work units. A small canary can reveal a regression while limiting the number of people affected. Compare it with the current version serving similar work during the same interval. Track absolute service health too. A shared dependency can degrade both populations and make their difference look harmless.

Use a window aligned to the candidate exposure. A five-minute step cannot be evaluated cleanly using an hourly query that includes the previous software for most of the hour. For background jobs, wait for enough work to complete so the signals describe results and processing time. If the window has too little traffic or the telemetry is missing, pause and gather enough evidence to decide.

As a sample, a release plan might require 1,000 eligible requests in each cohort and stop if the candidate returns more than 1% server errors in an agreed ten-minute window. Those numbers illustrate how to write a criterion. Set your own from normal variability, the user impact of a failure and how quickly you can stop exposure.

Keep one record during a response

If a stop condition is met, pause the rollout and record the time, evidence and affected cohort. When the impact warrants incident response, appoint someone to coordinate, someone to make operational changes and someone to handle updates. On a small team one person may initially fill more than one role. Make it easy to tell who can authorize the next change.

Keep the current user impact and recovery criteria at the top of the incident note. Record recent actions in order, including who made each change, when and what was observed. Reconfirm whether the candidate is involved without assuming that a coincident deployment caused the incident. For a handoff, name the incoming coordinator, ask them to acknowledge ownership and agree when the next update is due.

Exercise the decision before production

Use the release and handoff templates in a short rehearsal. Give the responder a scenario where the candidate regresses while the overall service appears healthy, then repeat with both cohorts affected. Have someone unfamiliar with the release locate the stop condition and explain the recovery check. Close the exercise by updating the checklist where a decision was slow, ambiguous or impossible to verify.

Working files

References