Course contents · Lesson 13 of 19

What Is On-Call? How Engineers Keep Apps Running 24/7

When Things Break · Lesson 13 of 19 · 11 min Engineer

It is 2:40 a.m. on a Sunday and a food delivery app's checkout starts failing. Twenty engineers work on the app, but only one phone rings, because a schedule written weeks ago says whose turn it is. This lesson answers what is on-call: how the turns are scheduled, the parts involved, which alerts deserve a page and how to keep it fair.

What on-call means

Being on call means it is your turn to be reachable and ready to respond when an alert pages you, nights and weekends included. As lesson 6 explained, a page is an urgent alert that interrupts you at once, while a ticket waits for working hours.

Each turn is a shift, usually a week long. You keep your phone charged and a laptop with internet access nearby, so you can start within minutes. You do not watch screens all night: with good alerts, most nights pass without a page.

Teams agree how fast you must respond; Google's SRE book chapter Being On-Call gives 5 minutes for user-facing services and 30 for less time-critical ones. You respond by acknowledging the page, telling the paging tool you are on it (lesson 12), then working the problem or calling for help.

The pieces of an on-call setup

Schedule, primary and secondary

The schedule, also called the rotation or rota, is the calendar of who is on call when. Everyone can read it, so the team, managers and the paging tool agree on who holds the pager tonight.

Each week has two roles. The primary gets every page first. The secondary is the backup, paged if the primary does not acknowledge in time, and a second pair of hands when a problem grows. In the calendar, notice that eight people fill four weeks, so each has one week on call, then three off.

Calendar of a four-week rotation with illustrative names. Primary row, paged first: Asha in week 1, Ben in week 2, Chen in week 3, Dana in week 4. Secondary row, the backup: Eli, Femi, Gita and Hugo. A handover marker at Monday 10:00 starts each week. A footer says each person has one week on call, then three weeks off
With eight people, nobody holds the pager more than one week in four, and it changes hands every Monday.

Paging tool and escalation rules

A paging tool is software that turns an alert into a ringing phone. It receives alerts from monitoring, such as Alertmanager, the alert router of the Prometheus monitoring system (see Alertmanager Routing, Grouping and Silences), looks up who is on call and notifies them by app, text or phone call. PagerDuty is a well-known example.

Escalation rules, or an escalation policy, say who is paged next, and after how long, when nobody acknowledges. The flowchart uses an example timeout of 5 minutes. Notice the two "yes" arrows: the chain stops once someone acknowledges, so the manager is woken only if both responders miss the page.

Flowchart: an alert fires because users are getting errors, and the primary is paged. If the primary acknowledges within 5 minutes, they work it: open the runbook, stop the harm, declare an incident if serious and log it for the handover. If not, the secondary is paged. If the secondary acknowledges within 5 minutes, they work it; if not, the manager is paged. Side notes say acknowledging means I am on it and stops the chain, and that the 5-minute timeouts are an example
Each "no" moves the page one step up, so one silent phone never leaves users waiting long.

The handover note

At the end of a shift, the outgoing primary writes a handover note for the next one, like the doctor's morning handover: what paged, what is still open and what to watch. Here is an illustrative note from the Monday when Asha hands over to Ben:

Handover, Mon 10:00: Asha to Ben
Pages this shift: 3 (1 at night)
  Fri 14:30  disk 90% full on db-2, old logs deleted
  Sat 11:05  "payment slow", recovered alone, no action
  Sat 21:14  checkout errors after release 4.18, rolled back
Open: ticket to fix the 4.18 bug (payments team)
Watch: sale on Wednesday, expect double traffic

The second line counts pages, and Saturday morning's page needed no action. The next two sections explain why both details matter.

Which alerts should page

A good page is urgent (users are hurt now or soon), actionable (you can do something useful) and needs a human (automation cannot safely handle it). Alerting Best Practices covers building such alerts; in short, page on what users feel, such as a fast error budget burn.

Everything else goes somewhere quieter: a ticket if it can wait for morning, a dashboard (a page of live charts) if it only helps diagnosis, or automation if the fix never changes. The table sorts some examples:

AlertWhich test failsWhere it goes
Checkout errors burning the budget fastNonePage
Disk will be full in four daysNot urgentTicket
CPU at 85 percent, users fineNot urgent or actionableDashboard
Same restart fixes it every timeNeeds no humanAutomation

Pages that fail the test cost sleep and trust: people woken for nothing learn to ignore pages, which is called alert fatigue. So Saturday's "payment slow" alert becomes a ticket to tune or delete it.

Follow the sun: handing over between regions

A team in one city will sometimes be woken at 3 a.m., however good its alerts are. A follow-the-sun rotation uses teams in regions several time zones apart instead: each holds the pager during its own daytime and hands over as its day ends.

In the diagram's December example, Bengaluru covers 07:30 to 15:30 India time, and London and Los Angeles each cover 10:00 to 18:00 local time. In UTC (Coordinated Universal Time, the world's reference clock) that is 02:00 to 10:00, 10:00 to 18:00 and 18:00 to 02:00: a full day with no night shift. Notice the clocks at 10:00 UTC: two regions trade the pager while the third sleeps.

Three world clocks at 10:00 UTC in December. Bengaluru, IST, UTC+5:30, shows 15:30 and is handing over; it is on call 07:30 to 15:30. London, GMT, UTC+0, shows 10:00 and is taking over; it is on call 10:00 to 18:00. Los Angeles, PST, UTC-8, shows 02:00 and is asleep; it is on call 10:00 to 18:00. A UTC timeline below shows Los Angeles until 02:00, Bengaluru 02:00 to 10:00, London 10:00 to 18:00 and Los Angeles 18:00 to 24:00. A footer says summer time shifts London and LA by an hour
The pager moves west with daylight, so every shift falls inside its region's working day.

Each regional handover needs a note too, because the next team starts cold. Every region also needs enough people: Google's SRE book suggests at least six engineers per site for a two-site team. And when London and Los Angeles move to summer time, fixed UTC handovers land an hour later on their local clocks.

Keeping on-call healthy

On-call that wears people out does not last: tired engineers make mistakes, and good ones leave. Four habits keep it healthy:

  • Fair compensation. Pay for out-of-hours duty or give time off. Google, for example, offers either, capped at a share of salary.
  • Enough people. Lesson 1 gave Google's cap of a quarter of each SRE's time on call. With week-long shifts and two roles, one site needs at least eight people, as in the calendar.
  • Runbooks. Every page should link to a runbook, a short guide to what the alert means and what to do, so nobody works it out alone at 3 a.m. A later lesson covers writing runbooks.
  • Tracking pages per shift. Count pages, and night pages separately, in each handover note. Google's SRE book suggests at most two incidents per 12-hour shift, so each gets proper follow-up. A rising count is an early warning of burnout, exhaustion from long-term stress at work, so fix noisy alerts or the unreliable service early.

Check yourself

A team of four wants a primary and a secondary every week. Why is that a problem, and how could they ease it?

Each person would be on call two weeks in four, double Google's quarter, which risks burnout. They could grow the rota, for example by adding the service's developers, or share it with a team in another time zone so each covers only its daytime.

The primary is on a train with no signal when a page fires. What happens, and why is that better than a message to the whole team?

After 5 minutes without an acknowledgement, the tool pages the secondary, and the manager only if the secondary misses it too. A named person owns the page at each step, while a group message lets everyone assume someone else has it.

A nightly backup slows disk reads for ten minutes and fires an alert, but users notice nothing. Should it page?

No. Nobody is hurt and nothing needs doing at night, so it fails the urgent and actionable tests. Make it a ticket or a dashboard panel, or alert on what users feel instead.

Go deeper