Toil: measuring & capping it

Toil is manual, repetitive, automatable, scaling with service growth. Track it, cap it (Google caps at 50%), and spend the reclaimed time on engineering.

About 24 min read3-question knowledge check

The mental model

Imagine a kitchen where a cook spends four hours a day washing the same dishes by hand, over and over, faster each week as the restaurant gets busier. The dishes are real. The work is genuine. But every hour at the sink is an hour not spent cooking, and the busier the restaurant gets, the more time drains into the sink — until one day the cook is doing nothing but washing and the kitchen stops improving entirely. A dishwasher costs money once; hand-washing costs the cook's career forever.

Toil is the hand-washing of operations. Google's SRE book defines it precisely — and the precision matters, because "toil" is not a synonym for "work I dislike." Toil is work with a specific, testable signature:

  • Manual — a human has to do it (even if a script is involved, if a human runs and babysits it, it counts).
  • Repetitive — you've done it before and will do it again, not a one-off.
  • Automatable — a machine could do it; it doesn't require human judgement.
  • Tactical, not strategic — it's interrupt-driven and reactive, not planned engineering that moves the system forward.
  • No enduring value — the service is in the same state after as before; you didn't leave it better.
  • Scales linearly (or worse) with service growth — twice the traffic, twice the toil. This is the killer property.

That last one is what makes toil an existential threat rather than an annoyance. Work that scales with the service rather than with engineering effort means that as you succeed — more users, more traffic, more machines — you drown. A team at 40% toil today is a team at 80% toil after two years of growth, doing nothing but keeping the lights on, shipping no improvements, and quietly burning out.

The discipline this topic teaches is treating toil as a measured, capped, budgeted quantity — not a vibe. Google caps toil at 50% of each SRE's time; the other 50% is protected for engineering that reduces future toil. You cannot cap what you don't measure, and you cannot measure what you can't define. So the work is: define it strictly, measure it with a ledger, cap it, and spend the reclaimed time buying dishwashers.

The full lesson continues with 15 more sections
  • Deep dive
  • Internal architecture
  • Real-world use cases
  • Best practices
  • Common mistakes
  • Performance
  • Security
  • Production troubleshooting
  • Advantages & disadvantages
  • Alternatives
  • Interview expectations
  • Interview questions
  • Facts to remember
  • Cheat sheet
  • Quick revision