Skip to content

Lesson 20 of 28Production ownership

Being On Call

How rotations work, how to prepare for your first shift, what to do in the first fifteen minutes of a page, and how to keep on-call humane.

17 min read0/4 questions

It is your first on-call week. At 02:47 your phone screams: "checkout-api: error budget burn rate 14x". You are awake, alone, and slightly scared, and the next ten minutes matter more than anything you know about the codebase. Nobody expects you to fix the bug at 3 a.m. They expect you to acknowledge, find out whether users are hurting, stop the hurt if you can, and pull in help early if you cannot. On-call is a skill with a routine, and the routine is learnable. Most teams that run their own services put every engineer on the rotation within a few months, so it is worth learning before your name is on the schedule.

How rotations work

An on-call rotation is a schedule saying who responds to pages for a set of services at any moment. A paging tool (PagerDuty, incident.io and similar, or your cloud provider's) holds the schedule, receives alerts from monitoring, and phones, texts or pushes to whoever is on.

The common shapes:

  • Primary and secondary. The primary gets every page. If they do not acknowledge within a set time, often 5 to 15 minutes, the page escalates to the secondary, then to a manager or the whole team. The secondary is backup and a second brain, not a second inbox.
  • Weekly shifts. One engineer is primary for a week. Many teams hand over mid-week, on a weekday morning, so the shift does not start with a weekend and both people are at work for the handover.
  • Follow-the-sun. Teams in different time zones each cover their own daytime, say London then New York then Sydney. Nobody is paged at night, at the cost of a handover every few hours.
  • Business hours with best-effort nights for internal tools, and full 24/7 only for services where an hour of downtime really hurts. Not everything deserves a pager.

Rotation size matters for health. Google's SRE book suggests at least eight engineers for a single-site 24/7 rotation, or six per site for two sites, so that each person is on call about one week in eight or less. On a team of four sharing a 24/7 pager, every engineer is on call every fourth week, and that tends to burn people out.

One page and its escalation policy
MonitoringPaging toolPrimarySecondaryTeam channelalert: checkout burn 14xpush + phone callposts the alertno ack after 10 minacknowledgeI have it, looking now

Monitoring only knows the alert. The paging tool knows the schedule and who is on call right now.

1/6

Before your first shift

Almost every bad first page comes down to something that could have been checked on a calm afternoon. Do this the week before.

  • Shadow first. Most teams pair you with an experienced engineer for a shift: you get the pages too, and you watch what they do. Then reverse shadow: you lead, they watch and step in only if needed. Ask for this if it is not offered.
  • Check every access. Log in to the production console, the log store, the tracing tool, the deploy system and the feature flag tool, from the laptop you will use at night. Make sure your VPN and SSO work from home. Find out how break-glass access works for the systems you cannot normally touch. Discovering at 3 a.m. that your production role was never granted is the classic failure.
  • Test the pager. Send yourself a test page. Make sure it makes noise through do-not-disturb and silent mode. Install the paging app on your phone and add a backup contact method.
  • Read the runbooks for the services you cover, and bookmark each service's main dashboard. If a runbook is missing or out of date, that is your first improvement ticket. READMEs and docs people use covers what a good runbook contains.
  • Practice the mitigations. In staging, roll back a deploy, turn a feature flag off, and scale a service up. You want your hands to know these, because they are what you will reach for first.
  • Know your escalation contacts. Who is secondary, who owns the database, who to call for the payments provider, and how to declare an incident.
  • Plan your week. Agreed response times vary, but "acknowledge within 5 to 15 minutes, at a laptop within 30" is common. That means a charged laptop, a phone hotspot when you travel, and saying no to the long flight or the remote hike that week. Swapping shifts with a teammate is normal. Just update the schedule in the tool.

When the page fires: the first fifteen minutes

Here is the routine. It is the same whether the page is at 3 a.m. or 3 p.m.

  1. Acknowledge. Within a minute or two. This stops escalation and signals ownership. Post one line in the team or alerts channel.
  2. Assess impact. Open the dashboard from the alert's runbook link. Is it real? Are users affected, how many, and which journeys? A page for 2% of checkouts failing is very different from a page for a nightly report running slow.
  3. Ask what changed. Most production problems follow a change: a deploy, a config change, a flag flip, a dependency's release, a traffic spike, an expired certificate. Look at the deploy markers and the change log for the last few hours first.
  4. Mitigate. If a recent change lines up with the start, undo it: roll back, or turn the flag off. If load is the problem, scale out. Restore service first and understand it later.
  5. Escalate early. If you do not understand what is happening within about 15 minutes, or the impact is large, page the secondary or the owning team and declare an incident. Incident Response covers what happens from there.
  6. Write down what you see and do, with times. Even three lines in the channel help everyone who arrives later.
Put it in order5 steps

You are paged at night for rising checkout errors. Put your first actions in order.

  1. Tap the steps below in the right order.
Need a nudge? A hint shows where it starts.

Mitigate before you root-cause

This is the single most important on-call habit, and it goes against an engineer's instincts. You want to understand the bug. But every minute users are failing costs money, trust and error budget, and understanding can take hours. A rollback returns the system to a state you know worked yesterday. It takes minutes, and it is almost always safe.

The usual mitigations, in rough order of how often you will use them:

  • Roll back the deploy, or turn off the feature flag. Flags are often faster and touch less.
  • Scale out when the problem is load: more replicas, a bigger pool.
  • Fail over to another region or replica when one is unhealthy.
  • Shed or block traffic: rate limit an abusive client, or switch off a non-essential feature to protect the core.
  • Restart a stuck process. It often works, but it also destroys evidence, so grab a thread dump or the logs first if you can do it in a minute.

Know when rollback is not safe. A deploy that ran a database migration may not roll back cleanly: old code may not understand the new schema, which is why teams use expand-and-contract migrations. If data is being corrupted, the first step may be to stop writes, not to restore anything. And when nothing changed recently, you are into real diagnosis, which is exactly when to escalate.

Quick check
Twenty minutes after a deploy, 8% of payment requests start failing. You think you can see the bug in the diff and could have a fix out in about 40 minutes. What should you do?
Need a nudge? A hint rules out a wrong answer.

Alert hygiene: every page must earn its noise

A page interrupts sleep, dinner and focus. So every page must be urgent (it needs a human now, not in the morning), actionable (there is something the responder can do) and about user impact, not about a cause that may or may not matter. The Google SRE book suggests no more than about two incidents in a 12-hour shift. Beyond that, people cannot handle each one well or follow up on it.

Noisy alerts are not a fact of life. They are bugs, and the person on call is best placed to report them. A simple habit: after each shift, label every page as actionable or not, and act on the patterns. Here is a week of pages from a real-looking rotation.

Pythonpage_review.py
from collections import Counter # One week of pages from the paging tool's export: (day, hour, alert, was action needed?)pages = [ ("Mon", 10, "checkout-api error budget burn", True), ("Mon", 23, "disk 80% on batch-worker-2", False), ("Tue", 3, "disk 80% on batch-worker-2", False), ("Tue", 14, "payments p99 latency high", True), ("Wed", 2, "nightly export job slow", False), ("Wed", 2, "nightly export job slow", False), ("Wed", 4, "disk 80% on batch-worker-2", False), ("Thu", 11, "search error rate high", True), ("Fri", 1, "nightly export job slow", False), ("Fri", 3, "disk 80% on batch-worker-2", False), ("Sat", 16, "checkout-api error budget burn", True), ("Sun", 4, "disk 80% on batch-worker-2", False),] def night(hour): return hour >= 22 or hour < 7 total = len(pages)actionable = sum(1 for p in pages if p[3])nights = sum(1 for p in pages if night(p[1]))print(f"pages: {total} actionable: {actionable} ({actionable / total:.0%}) at night: {nights}") noisy = Counter(p[2] for p in pages if not p[3])print("\nnever actionable, fix or delete these first:")for alert, n in noisy.most_common(): print(f" {n} x {alert}") DAYS = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]woken = [d for d in DAYS if any(p[0] == d and night(p[1]) for p in pages)]print("\nnights with sleep broken:", len(woken), woken)
Output
Press Run (⌘ Enter) to see what happens.

Two alerts cause two thirds of the pages, and none of them ever needed action. The disk alert is a cause, not a symptom: a disk at 80% hurts nobody. It should become a ticket, or the disk should clean itself up. The export job alert fires at night for a job nobody needs until morning, so it should be low urgency. Notice something else in that data, too.

Predict the outputPython

Add these lines to the end of the block. If you removed every alert that was never actionable, how many night pages would be left?

kept = [p for p in pages if p[2] not in noisy]
print(sum(1 for p in kept if night(p[1])))
Need a nudge? Hints walk you through it.

What you can do with a bad alert, from lightest to heaviest:

  • Tune it: raise the threshold, require it to hold for longer, or switch to a burn-rate alert so short blips do not fire.
  • Demote it: make it low urgency or a ticket, so it waits for working hours.
  • Group it: ten pods failing the same check should be one page, not ten.
  • Fix the cause: automate the cleanup, so there is nothing to alert on.
  • Delete it: if nobody can say what they would do when it fires, it should not exist.

Every alert that stays should link to a runbook: what it means, which dashboard to open, and the steps to mitigate.

Match the pairs0/5 matched

Match each alert problem to the best fix.

Choose an item, then its match on the other side.

Toil, sustainability and boundaries

Toil is the SRE word for operational work that is manual, repetitive, automatable and without lasting value, and that grows with the size of the service. Restarting the same worker every Tuesday is toil. Google's SRE teams aim to keep it under half of an engineer's time, and they treat on-call as a source of engineering work: each painful page becomes a ticket to remove its cause. Your team may not measure this formally, but the attitude carries over.

Some norms worth knowing and, if needed, asking about:

  • Compensation varies. Some companies pay a stipend per shift, some give time off in lieu, some pay per incident, and some treat it as part of the salary. Ask during the offer stage. It is a normal question.
  • Recover after a bad night. If you were up for two hours, start late or take the morning off. Good managers expect this. Making decisions on four hours of sleep is how second incidents happen.
  • Asking for help at 3 a.m. is expected. Waking the secondary is what they signed up for. Nobody gets in trouble for escalating too early; people do get in trouble for sitting on a big outage alone for an hour.
  • Off call means off call. When the shift ends, hand over and stop watching the channel. A rotation only works if rest is real.

Handover notes and follow-up tickets

The shift ends with a short written handover, posted where the next person and the team will see it. It turns a week of private context into shared knowledge, and it is the raw material for alert tuning and reliability work.

handover-2026-10-22.md
## On-call handover: payments team, Thu 15 Oct to Thu 22 Oct
 
**Pages:** 12 (4 actionable, 8 noise). 5 nights interrupted.
**Incidents:** INC-2291 (SEV2, Mon): checkout errors after release 4.12.0, rolled back in 9 min.
  Postmortem scheduled Friday.
 
**Still open**
- Release 4.12.1 with the fix is in staging; not deployed yet. Do not re-enable `new_pricing` flag
  until it is out.
- Payments provider has a maintenance window Sat 02:00-04:00 UTC. Expect elevated latency alerts.
 
**Follow-up tickets filed**
- PAY-881: demote "nightly export job slow" to low urgency (3 night pages, never actionable)
- PAY-882: automate log cleanup on batch-worker-2 and remove the disk alert (5 pages)
- PAY-883: runbook for "payments p99 latency high" was out of date (wrong dashboard link)

The good parts: numbers, not feelings. Anything risky left in flight is called out with a clear "do not". Known upcoming events are flagged so the next person is not surprised. Every annoyance has become a ticket with an owner, rather than a complaint in a retro. Many teams also hold a short weekly on-call review where the outgoing person walks through this note.

Key terms
rotation
The schedule that says who responds to pages for a set of services at any time, usually primary and secondary.
escalation policy
The rules for who is paged next, and after how long, when a page is not acknowledged.
acknowledge
Telling the paging tool you have a page, which stops escalation and signals ownership to everyone else.
follow-the-sun
A rotation where teams in different time zones each cover their own working hours, so nobody is paged at night.
runbook
A short document linked from an alert that explains what it means, which dashboard to check and how to mitigate.
toil
Manual, repetitive, automatable operational work with no lasting value, which grows as the service grows.
alert fatigue
When so many pages are noise that responders start ignoring or muting them, and real problems get missed.