The troubleshooting method: mitigate first, bisect by evidence

Mitigate first, then bisect by evidence: state a hypothesis with the observation that would kill it, name the blast radius of every action, change one thing at a time, and narrate all of it.

Read the briefing
About 4 min to read 12 drills

What to remember

  1. Ask 'what is the mitigation' before 'what is the cause'. Rollback, failover, shed, divert. Understanding is the postmortem's job; users are bleeding now.
  2. A good step is one whose result changes what you do next. Client or server, this host or all, before or after the deploy. Halve the space, do not enumerate it.
  3. Restarting is an action with a cost. It destroys the evidence in memory and may hide the fault. Capture first, then restart deliberately.
  4. Change one thing at a time or you lose causality. Two simultaneous changes mean you learn nothing and may mask a second fault.
  5. Silence reads as flailing. Say the hypothesis, the command that tests it, and what would change your mind. That narration is most of the score.

The big picture

This is the topic every other Linux question is secretly testing: do you have a method? Mitigate before you diagnose, form hypotheses and bisect by evidence, know the first sixty seconds of commands, weigh the blast radius of each action, and narrate what you are doing so the room can follow. Method is what interviewers can transfer to problems you have never seen.

The mental model

Two loops. The outer loop protects users: is there a mitigation available right now (rollback, failover, shed, divert), and what does it cost? The inner loop finds truth: state a hypothesis, choose the observation that splits the possibility space roughly in half, run it, and let the result kill or confirm the hypothesis. Say both loops out loud.

Diagrams

The first ten minutes, in order
   page
    |
    v
 1  SCOPE       who, how many, which regions, since when
    |           two minutes; it decides how hard to push
    v
 2  MITIGATE    roll back, shed load, fail over
    |           capture evidence first - it takes a minute
    v
 3  CORRELATE   what changed just before the graphs moved?
    |           deploy - flag - config - cert - cron
    |           no change? then something SCHEDULED expired
    v
 4  FOLLOW      chase errors to the next hop, not the
    |           loudest alert. The service reporting the
    |           failure is rarely the one that has it.
    v
 5  FIX, then write down what would have caught it

In depth

Mitigate first

The first question in any incident is not "why" but "what makes this better now". Roll back the correlated change, fail over to the healthy replica or region, shed the traffic class that is hurting everyone else, divert to a static page, scale out. Mitigation buys the time diagnosis needs, and it is usually reversible, which diagnosis-driven fixes often are not. Preserve evidence where it is cheap (a snapshot, a heap dump, a copy of the logs, a kubectl describe before you delete the pod), because the postmortem cannot recover what the mitigation destroyed. The one exception is when the mitigation itself is dangerous and you do not yet know which resource is failing: then spend a bounded number of minutes, say it out loud, and act at the deadline.

Hypothesis-driven bisection

A good troubleshooting step is one whose result changes what you do next. Ask where the boundary is: client or server, this host or all hosts, this route or all routes, before or after the deploy, inside the cluster or outside. Each answer halves the space. Use differences ruthlessly: what changed (deploys, config, traffic, data volume, dependencies), and what is different about the broken instance versus the healthy one. Beware the anchor of the last incident: recent memory makes you look where you looked before. Write hypotheses down (or into the channel) with the observation that would falsify them, and time-box each one; the discipline is what stops an hour of confirming a favourite theory.

The first sixty seconds, and blast radius

On a "slow box", the checklist buys context fast: uptime (load trend), dmesg -T | tail (OOM, disk, NIC errors), vmstat 1 (run queue, blocked, swap, wa/st), mpstat -P ALL 1 (one hot CPU), pidstat 1 (who), iostat -xz 1 (await, queue), free -m (available, not free), sar -n DEV 1 and sar -n TCP,ETCP 1 (throughput, retransmits), top. For a service, add the request-level view: error ratio, latency percentiles, saturation of its own pools, and what changed recently.

Before every action, name the blast radius: restarting a process loses in-flight work and the evidence in its memory; draining a node moves load somewhere that may not have room; flushing a cache creates a stampede against the origin; a config reload may pick up other uncommitted changes. Prefer reversible actions, announce them before you make them, and change one thing at a time so causality survives.

Narrate

In an interview and in an incident channel, silence reads as flailing. Say the hypothesis, the command that tests it, and what result would change the plan: "I think the pool is exhausted; ss -s and the pool metric will show it; if waits are near zero I will go back to the dependency's latency." This lets others correct you early, gives the scribe a timeline, and, in interviews, is most of the score: the interviewer cannot read your mind, and a candidate who narrates a wrong hypothesis and discards it on evidence outperforms one who silently arrives at the right answer.

Myths and facts

Myth: You should understand the problem before changing anything.

Fact: In production, mitigate first when a safe lever exists; understanding is the postmortem's job.

Myth: Restarting is a neutral first step.

Fact: It destroys evidence, may hide the fault, and can shift load onto other instances; treat it as an action with a cost.

Myth: More data always helps.

Fact: Choose the observation that splits the possibility space; unfocused data collection burns the clock.

Myth: Silence while thinking is fine in an interview.

Fact: Method is scored through narration; unspoken reasoning cannot be credited.

Myth: If two things changed, fix both.

Fact: Change one thing at a time so you can attribute the effect; otherwise you lose causality and may mask a second fault.

How pros do it

  • Ask 'what is the mitigation?' before 'what is the cause?', and preserve cheap evidence first.
  • State hypotheses with a falsifying observation and a time box.
  • Run the sixty-second checklist to get resource context before deep-diving.
  • Name the blast radius of every action and prefer reversible ones; change one thing at a time.
  • Narrate continuously: hypothesis, next command, what would change your mind.

Questions people ask

You get paged and know nothing yet. What do you do first?

Scope, then mitigate, then ask what changed: who is affected, how many, since when; whether a rollback, failover or load-shed exists and what it costs; and which deploy, flag, config push or expiry lines up with the start time. Say all three in that order out loud, because the order is the score. The caveat: capture the cheap evidence (a describe, a heap dump, the dashboard with timestamps) before the mitigation destroys it.

When is it right to restart?

When it is the mitigation and you have captured what you need, or when the process is unrecoverable; never as a reflex. The mechanism to name is cost: a restart loses in-flight work and the evidence in memory, and can move load onto instances that have no room. Say 'a restart is an action with a blast radius' and the interviewer stops worrying about you.

How much should I narrate in an interview?

Every hypothesis, every command's purpose, and what result would change your plan, briefly. Ask for the output you would look at rather than describing tools abstractly. Silence reads as flailing; a narrated wrong hypothesis that you discard on evidence scores higher than a silent right one.

What if there is no mitigation available?

Say so explicitly, set a time box for diagnosis, and keep hunting for partial mitigations: shed the worst traffic class, degrade a feature, cap concurrency. The caveat is honesty about the clock: announce the deadline at which you will take the risky action anyway.

How do I avoid anchoring on last week's incident?

Declare the bias out loud and ask 'what changed in the last hour' before theorising; write the hypothesis down with the observation that would kill it. Make 'what changed' the first line of the incident template so the habit does not depend on who is on call.

How do I bisect a problem that is intermittent?

Find the correlation first (time, host, route, tenant, payload size), then bisect along that dimension. Capture continuously (rolling pcaps, always-on profiling, request logs with ids) so the next occurrence is evidence rather than a repeat, and say that the goal is to make the next occurrence cheap, not to wait for it.

Further reading

Drills · 12

Answer in your head, or out loud, before you reveal. Mark each one: "Again" brings it back, "Got it" counts on your desk.

1 Pick the strongest answer

You are ten minutes into a customer-facing outage. You have a plausible but unproven theory about the cause, and a rollback that would very likely restore service. What do you do?

  1. Ask for approval from the change board before rolling back. Emergency rollback paths exist precisely so that process does not extend an outage.
  2. Keep investigating — rolling back without understanding the cause means you might repeat it. This is the most common and most expensive mistake in incident response: extending impact to satisfy curiosity.
  3. Roll back and close the incident without a follow-up, since service is restored. Mitigating without diagnosing afterwards guarantees the same outage returns.
  4. Roll back first. Stopping the bleeding is the priority while customers are affected; you investigate afterwards with the evidence you captured on the way, and the rollback itself is a data point. Mitigation and diagnosis are separate activities, and during user impact mitigation wins.
In short

Roll back first, capture cheap evidence on the way, and investigate afterwards.

Why

Every incident-response rubric in the industry has this as the top line, and it is the most commonly failed behavioural signal in SRE loops. Say mitigation first, unprompted, and say how you preserve evidence while doing it.

The common mistake

'Rolling back without understanding might make it worse.' It almost never does, and every minute spent proving the theory is a minute of user impact you chose.

Read the docs

2 Answer out loud

You are dropped onto an unfamiliar Linux host that users say is 'slow'. Narrate your first sixty seconds: the commands, in order, and what each one rules in or out.

In short

A strong answer runs the sixty-second checklist in order and says, for each command, what result would change the next step.

What a strong answer does
  • method: The checklist in order with a purpose each: uptime (load trend), dmesg -T | tail (kernel events), vmstat 1 (r, si/so, wa), mpstat -P ALL (per-CPU imbalance), pidstat (per-process), iostat -xz (device saturation), free -m (available), sar -n DEV / TCP,ETCP (network and retransmits), top.
  • reasoning: Each command paired with what result would redirect the investigation (high r → CPU; wa/iostat → disk; si/so → memory; retrans → network).
  • communication: Thinks aloud, states hypotheses, says what would change the plan.
Why

This is Brendan Gregg's 60-second checklist, and interviewers use it because it shows whether you have a method or a reflex. The narration matters as much as the commands.

The common mistake

Opening with top and chasing whatever is at the head of the list, or reciting tools without saying what each one rules in or out.

Read the docs

3 Scenario: what do you do next?

"You cannot SSH into a remote machine." That is the whole prompt as it is usually given. You ask, and learn it is a production host behind a load balancer, its health check is failing, and two other hosts in the pool are fine.

Step 1. What do you do first, and what do you deliberately not do yet?

  1. Confirm the blast radius and mitigate: verify the LB has removed the host and capacity is fine on the survivors; then bisect the SSH failure from outside (ping, TCP connect to 22, console/serial access) before touching the host. Service first, then evidence from the outside in. The 'do not do' is rebooting before you know whether it is network, sshd, or the host.
  2. Page the network team. No evidence yet points at the network.
  3. Reboot it from the cloud console. It may fix it and it destroys the evidence; with two healthy hosts there is no urgency that justifies that.
  4. Start checking DNS on your laptop. Possible but low-probability when two sibling hosts resolve fine; bisect toward the host.

Step 2. Ping works; nc -vz host 22 times out; the serial console shows a login prompt and systemctl status sshd says active. What next?

  1. Restart the network interface. Ping works; the interface is up.
  2. The host is up and sshd is running, so the block is between the network and the daemon: check the host firewall (nft/iptables), whether sshd is listening on the right interface (ss -ltnp), and conntrack/fd exhaustion; a recent firewall change is the leading hypothesis. Ping-yes, port-no, daemon-yes narrows it to filtering or listening; the observation chooses the next command.
  3. Assume the LB is misconfigured and fix it. The LB is doing the right thing by failing the host; the SSH problem is on the host.
  4. Reinstall openssh-server. sshd is active; reinstalling changes nothing and adds risk.

Step 3. A config-management run last night added an nftables rule that blocks port 22 from the bastion range. Fix and systemic follow-up?

  1. Fix the rule from the console, confirm SSH and health checks recover, then make the change safe: canary firewall changes on one host with an automatic rollback if the bastion cannot connect, and alert on hosts losing SSH reachability. Immediate fix plus a mechanism that keeps the next firewall change from locking out a fleet.
  2. Disable the host firewall permanently. Removes a security control to avoid fixing a process.
  3. Tell the team to be careful with nftables. A reminder, not a mechanism.
In short

Confirm the load balancer removed the host, bisect SSH from outside in, find the firewall rule that blocks port 22, then make firewall changes canary with automatic rollback.

Why

The prompt is not about SSH; it is about method. Mitigation and blast radius first, then bisection from outside in, each observation choosing the next test, and a systemic fix that targets how the bad change got out. Silence or reflexive reboots are what fail candidates here.

The common mistake

Rebooting from the console first, or enumerating every possible cause instead of choosing the observation that splits them. Both read as reflex rather than method.

Read the docs

4 Quick recall

Ten seconds into an incident call, what is the single most useful question you can ask about the system?

In short

Ask what changed, and when.

Accepted

what changed · what changed recently · was there a deploy

Why

Most incidents are caused by a change: a deploy, a config push, a feature flag, a certificate expiring, a scheduled job. Asking what changed and when, and comparing it against when the graphs turned, finds the cause faster than any amount of reasoning from first principles.

Read the docs

5 Pick the strongest answer

A deploy went out ten minutes ago; error rate is 30% and climbing. The engineer on the call says 'let me find the root cause first so we fix it properly'. What should happen instead?

  1. Restart everything to see if it clears. A restart is neither a targeted mitigation nor an investigation; it destroys evidence for no diagnosis.
  2. Wait to see if it self-heals. A climbing error rate after a deploy has an obvious reversible mitigation; waiting is a choice to keep failing.
  3. Mitigate first: roll back or divert traffic to restore service, then investigate with the system stable; root cause is for the postmortem. Google's SRE book is explicit: make the system work as well as it can, then find out why it broke.
  4. Agree; fixing symptoms hides bugs. Users are paying for every minute of investigation; rolling back preserves the evidence anyway.
In short

Mitigate first: roll back or divert traffic to stop the damage, then find the root cause with the system stable.

Why

Interviewers score this explicitly: reaching for root cause first feels like rigour and reads as inexperience. Mitigation is the first step of troubleshooting, not a distraction from it, and rollbacks keep the evidence (the bad version is still in the registry) for later.

Read the docs

6 Read the output

You join at 14:25. Which action gives the most information for the least risk?

14:02  deploy   payments v482 -> v483        (canary 5%)
14:05  alert    checkout p99 latency 400ms -> 2.1s
14:06  alert    payments error rate 0.1% -> 0.4%
14:11  deploy   payments canary 5% -> 100%
14:12  alert    payments error rate 0.4% -> 9%
14:19  change   feature flag new_pricing = true (all users)
14:24  page     checkout availability SLO burn
  1. Restart the checkout service, which is where the customer symptom is. Checkout is downstream of payments; restarting it treats the symptom and loses state.
  2. Scale up payments to absorb the latency. Nothing indicates saturation, and more instances of a bad version means more errors.
  3. Turn off the new_pricing flag, since it was the most recent change. Recency is not causality: the degradation started 17 minutes before the flag was touched.
  4. Roll the payments canary back to v482. Latency and errors both moved within three minutes of v483 reaching 5%, well before the flag, and the errors scaled with the canary percentage — that correlation is far stronger than the flag's. The dose-response relationship between canary share and error rate is close to proof, and rollback is both mitigation and test.
In short

Roll the payments canary back to v482, because errors started right after v483 and grew with the canary share, well before the flag changed.

Why

Reading an incident timeline is a real interview format, especially for SRE loops, and the skill is resisting the last thing on the list. Saying out loud that rollback is both the mitigation and the test is a strong signal.

Read the docs

7 Pick the strongest answer

You are incident commander. Twenty minutes in, you have no root cause and an executive asks for an ETA. What is the right response?

  1. Say you are busy and will report when it is resolved. Silence guarantees escalation and more people arriving to ask the same question.
  2. Hand the question to the engineer who is deepest in the debugging. Protecting the people working the problem is one of the commander's main jobs.
  3. Give a confident estimate to reassure them, and revise it later if needed. A missed ETA costs more trust than the original uncertainty, and invites more interruptions.
  4. State impact, what you have ruled out, the current action, and when you will next update — and say you do not have an ETA yet rather than inventing one. A reliable update cadence is what buys you the room to work. Commitment to a cadence is credible; a fabricated ETA destroys trust the moment it slips.
In short

Give the impact, what you have ruled out, the current action and the time of the next update, and say honestly that you have no ETA yet.

Why

Communication is graded as heavily as technical skill in senior SRE loops, and this exact question shows up in behavioural rounds. The honest answer — a cadence instead of a guess — is also the one that works in real incidents.

Read the docs

8 Scenario: what do you do next?

You are paged at 02:40: the checkout API's error rate is 12%. You are the only responder online. You have dashboards, deploy history, and production access.

Step 1. What are your first two minutes?

  1. Start reading application logs from the beginning to find the first error. Logs are deep but slow; without scope and timing you do not yet know which logs matter.
  2. Wake the whole team to parallelise. Escalate when scope demands it, not before you know what the scope is.
  3. Restart the checkout service, since that fixes most things. It may briefly mask the symptom, destroys evidence, and you still do not know the blast radius.
  4. Establish scope and timing: how many users, which endpoints, which regions, and exactly when it started — then line that start time up against the deploy and config history. Post a one-line acknowledgement so anyone else who wakes knows it is owned. Scope tells you how hard to push, timing points at the cause, and the acknowledgement prevents duplicate responders.

Step 2. It began at 02:31, affects all regions, and there was no deploy for six hours. The errors are all upstream timeouts to the payments service. What next?

  1. Scale checkout up, since it is the service that is erroring. Checkout is healthy; it is reporting a failure in something else.
  2. Add retries in checkout to ride out the timeouts. Retries against a struggling dependency usually deepen the outage by multiplying load.
  3. Follow the dependency: shift attention to payments and check its health, its own dependencies, and anything time-based that could fire at 02:31 — a cron job, a certificate expiry, a token refresh, a scheduled scale-down. No deploy plus a sharp start time points at something scheduled or expiring, and the errors already name the next hop.
  4. Declare it a network issue and open a ticket with the cloud provider. Blaming the provider before checking your own scheduled work is how hours get lost.

Step 3. Payments' client certificate expired at 02:31. Renewing it needs a change you would normally get reviewed, and it is 02:50. What do you do?

  1. Use the emergency change path: renew and deploy the certificate now with a second pair of eyes if anyone is available, record exactly what you did in the incident channel as you do it, and get the retrospective review in the morning. Emergency paths exist for this; the substitute for pre-review is a contemporaneous written record.
  2. Renew it quietly and mention it if anyone asks. The action is right and the concealment is not; an unrecorded production change is how the next incident becomes unexplainable.
  3. Disable certificate verification to get past it. It turns an availability incident into a security incident, and it will quietly stay that way for years.
  4. Wait until 09:00 so the change can be reviewed properly. Six more hours of a 12% checkout failure rate to satisfy a process that has an emergency path.
In short

Establish scope and start time first, follow the errors to the payments service and its expired certificate, and renew it through the emergency change path with a written record.

Why

This is a whole SRE phone screen compressed into one item. The three signals being graded are scope before depth, dependency-following instead of symptom-chasing, and a sensible relationship with process under pressure.

Read the docs

9 Read the output

Read this for me: what is the bottleneck, and what in the output says so?

$ uptime
 03:14:07 up 41 days,  2:03,  1 user,  load average: 38.12, 31.40, 12.05
$ nproc
8
$ vmstat 1 3
procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st
 2 34      0 812340 104220 5120340   0    0 48210    12 9102 4021  6  3 11 80  0
 1 35      0 811900 104220 5120360   0    0 51022     8 9310 4100  5  2 10 83  0
 3 33      0 811400 104220 5120400   0    0 49876    16 9205 4087  6  3 12 79  0
  1. CPU saturation: load 38 on 8 cores means the CPUs are overloaded. r is 2; the CPUs are idle or waiting. Load counts uninterruptible tasks too.
  2. Memory pressure: free is low. 800 MB free with 5 GB cache and zero swap activity is healthy.
  3. Disk read I/O: ~35 processes blocked (b), CPU mostly waiting (wa ≈ 80%), heavy blocks-in (bi) with tiny free CPU use; the load average is high because blocked tasks count, not because CPU is busy. Load of 38 on 8 cores with r=2 and b=34 is the textbook I/O-bound signature; iostat -xz would show the saturated device.
  4. Network saturation: the interrupt rate is high. Interrupts track the disk I/O here; nothing in this output points at the network.
In short

The disk is the bottleneck: about 35 tasks are blocked and the CPU spends 80% of its time waiting for I/O, which is what inflates the load average.

Why

Load average on Linux includes tasks in uninterruptible sleep, so a disk that cannot keep up produces a huge load with idle CPUs. The b column and wa percentage make the call in one screen; the next command is iostat -xz to name the device and its await, then pidstat -d to name the process.

Read the docs

10 Quick recall

Users are affected right now. Before you go looking for the root cause, what is your first job, in a word?

In short

Mitigation comes first: make the system work as well as it can, then find the root cause.

Accepted

mitigation · mitigate · triage

Why

Triage and mitigation first: make the system work as well as it can, then examine, diagnose, and cure.

11 Pick the strongest answer

An interviewer asks: 'You have watched people troubleshoot badly. What were they actually doing wrong?' Which answer names the failure modes that derail an investigation?

  1. Reading logs before metrics; asking the developer; checking documentation. The order of logs and metrics depends on the hypothesis; asking and reading are not pitfalls.
  2. Not restarting services soon enough; over-communicating; using too many tools. None of these are the pitfalls; under-communicating is a pitfall, over-communicating is not.
  3. Looking at irrelevant symptoms or misreading metrics; misunderstanding how to change the system safely; inventing improbable theories or latching onto causes of past problems; hunting spurious correlations. These four appear verbatim in Effective Troubleshooting; interviewers watch for each of them in live scenarios.
  4. Trusting monitoring; using the SRE book as a reference. Misreading monitoring is a pitfall; trusting well-understood monitoring is fine.
In short

The SRE Book's pitfalls are irrelevant symptoms or misread metrics, unsafe changes, improbable or past-incident theories, and spurious correlations.

Why

The method is hypothesis-driven: each observation should split the space of possible causes, and the pitfalls are the ways that discipline breaks down. Naming 'latching onto a past cause' out loud when you catch yourself doing it is a strong interview signal.

Read the docs

12 Design round

Design the on-call troubleshooting runbook standard for a fleet of 300 Linux hosts running a latency-sensitive service: what every runbook must contain, how mitigation is separated from diagnosis, and how you would measure whether the standard shortens incidents.

  • Responders rotate across five teams with mixed Linux depth.
  • Every mitigation must be reversible or explicitly approved.
In short

A strong answer gives every runbook one shape with mitigations before diagnosis, captures first-minute evidence automatically, and measures time-to-mitigate separately from time-to-diagnose.

A strong answer covers
  • Runbook structure: symptom → blast-radius check → mitigations (ordered by reversibility) → diagnosis tree → escalation.
  • Standard first-minute evidence set (uptime, dmesg, vmstat, iostat, PSI, sar) captured automatically on alert.
  • Explicit 'do not do' list per runbook (reboot before evidence, drop caches, kill -9 without ownership).
  • Communication template: hypothesis, next test, expected result, ETA.
  • Measurement: time-to-mitigate and time-to-diagnose per incident, runbook hit rate, postmortem action-item completion.
  • Review loop: postmortems feed runbook changes; game days exercise them.
What a strong answer does
  • design quality: Structure, automated evidence capture, reversibility ordering, do-not-do list, comms template, and a feedback loop.
  • tradeoffs: Two or more with decisions (automation vs judgement; standardization vs team autonomy).
  • communication: Restates constraints, walks a responder through one incident under the standard, ends with the metrics.
Why

Staff-level answers turn troubleshooting from a personal skill into a system: shape, automation, guardrails, communication, and measurement, with mitigation structurally ahead of diagnosis.

Read the docs

Next lesson systemd: units, dependencies, restart policy, targets, journald, boot triage, and timers
Drill · The troubleshooting method
0:00

Loading…