$ run as a normal user# run as root (or with sudo)
Skills in this chapter
- SRE — P982–P991
The platform golden path
One road, three tiers, and every tier has a paved exit.
Every platform team promises a golden path, and most of them ship a wiki page. The path that works has three tiers, and each tier has to hand off cleanly to the next.
- Request: Service catalogue, Golden templates, Quota and cost
- Deploy: CI pipeline, Progressive rollout, Policy gates
- Observe: SLO dashboard, Alerts and on-call, Cost and capacity
Full note: P982 — The platform golden path
Running an SLO workshop that ends in decisions
A workshop is finished when the page exists, not when the hour is up.
Most SLO workshops end with a graph and a good feeling. An hour later nobody remembers the target, and the first bad week reopens the argument.
- Pick the signal: One journey, measured at the edge, as a ratio a user would recognise.
- Set the target: A percentage and a window, checked against ninety days of real data.
- Write the policy: The freeze rule, the approver and the recover path, signed in advance.
- Close the loop: Owners, a review date and a page the whole team can find.
Full note: P983 — Running an SLO workshop that ends in decisions
Four SRE numbers that matter
Measure four things properly, and let the rest be detail.
Dashboards are cheap and attention is not, so most teams watch forty graphs and act on none. Four numbers carry most of the operational story.
- Availability: the share of requests that succeed, measured where users are.
- Burn: how fast the error budget is going, not how many errors exist today.
- MTTR: time from alert to service restored, and mostly a process number.
- Toil: manual, repeating work that leaves nothing behind. Count the hours.
Full note: P984 — Four SRE numbers that matter
The toil elimination loop
Measure it, then remove the cause.
Toil is the work that keeps a service running and leaves nothing behind: certificate renewals, access requests, the same ticket every Monday. It is not a character flaw, it is a queue with no owner.
- Measure the toil: Log every manual task for two weeks and count the hours.
- Rank by cost: Frequency times minutes, or you automate the rarest task first.
- Automate one path: Script the boring case and keep a manual fallback open.
- Delete the source: Remove the ticket type or permission that made it manual.
Full note: P985 — The toil elimination loop
On-call handover that survives a bad night
A handover is a state transfer, not a story.
At 07:00 the outgoing engineer has been awake fourteen hours, and the incoming one has eight minutes. Everything the handover omits is lost, and the service pays two hours later.
- Write during the shift: The log starts at the first alert, not at the end of the shift.
- Five lines: State, since, risk, threads and asks, in that order, in UTC.
- Hand over the timers: Alerts, silences and expiry times belong in the handover.
- Close with a summary: One message, one link, owners and the review date.
Full note: P986 — On-call handover that survives a bad night
Error budget rules in five lines
Five lines, agreed in advance, turn a number into a decision.
An error budget is the failure your target already allows. At 99.9 per cent over 30 days it is 43 minutes, and that number is a permission, not a warning.
- 99.9% over 30 days leaves 43 minutes to spend.
- Spend the budget on change, not on accidents everyone already knew about.
- Burn rate is speed: it decides when to page.
- Out of budget freezes risky releases, not the whole team and not the roadmap.
Full note: P987 — Error budget rules in five lines
Life of an incident
Declare early, mitigate first, review late.
An incident is not one event. It is five stages, and each one can be the stage where the night goes wrong.
- Detect: A burn alert or a customer report reaches a person who can act.
- Declare: Severity, a channel and a named commander, before you debug.
- Mitigate: Roll back or fail over first; the cause can wait for the review.
- Resolve: Service stable, data corrected, the backlog drained or labelled.
Full note: P988 — Life of an incident
Writing runbooks people actually follow
A runbook is read at 03:00 by someone who did not write it, cannot reach the author, and wants to stop the bleeding. Most runbooks are written for another reader: the reviewer, the auditor.
- Title the alert: The page is found from the pager, so it opens with the alert words.
- One check per step: A command, its expected output, and the branch that follows.
- Commands, not prose: Real commands with placeholders, exit codes and an undo.
- Test, then own it: A stranger runs it, an owner reviews it, a date retires it.
Five postmortem questions
Five questions, evidence for each, and actions that outlive the meeting.
A postmortem is not a meeting about feelings and it is not a court. It is five questions with evidence behind each answer.
- What did users experience, on a timeline you can prove with data?
- Which condition allowed it, and which trigger started it?
- What did we try, and what did each attempt tell us about the system?
- What changes, with a named owner and a date?
Full note: P990 — Five postmortem questions
The capacity planning stack
Demand, headroom, then the bill.
Capacity planning fails in two directions: the service falls over on a peak, or the bill arrives for hardware nobody used. The stack that avoids both has six layers.
- Demand: Requests per second, peak shape, the growth you can defend.
- Forecast: A range with a date: expected, high, and when it is needed.
- Model: Throughput times request time gives concurrency.
- Headroom: The gap between peak and the point where latency breaks.
Full note: P991 — The capacity planning stack