Skip to content
Foundations · 9 min

A method for troubleshooting rounds

You will not know the answer to every troubleshooting question, and you do not need to. The round is scored on method. This is a five-step method that works on any incident, with the sentences to say at each step.

The five steps

  • Scope. Who is affected, since when, and how badly?
  • Stabilise. Is there a safe action that reduces harm right now?
  • Hypothesise. What is the most likely cause, given what changed?
  • Test. Which single command or graph would confirm or rule that out?
  • Communicate. Tell the incident channel what you know, what you are doing and when you will update next.

Questions to ask first

  • What changed recently? A deploy, a configuration change, a certificate, a traffic pattern.
  • Is it all users or some? One region, one host, one customer, one endpoint.
  • When did it start, and was the start sudden or gradual?
  • What do the errors look like: refused, timed out, or a wrong answer?

Sudden usually means a change or a hard limit being hit. Gradual usually means a leak or growth. One host points at that machine; one region points at the network or a regional dependency; everyone points at a shared dependency or a global change.

Mitigate before you diagnose

Users being harmed matters more than your curiosity. If a deploy went out ten minutes before the errors began, roll it back first and investigate afterwards. Other safe mitigations are taking one bad host out of the load balancer, shifting traffic away from one region, or adding capacity. Say what evidence you are preserving before you act, for example a heap dump or the logs from the bad host.

One hypothesis at a time

Use one sentence shape for every step: "I think it is X. If so, command Y will show Z. If it does not, I will look at W next." It turns guessing into testing, and it gives the interviewer something to write down each time you speak.

Linked exercise · needs a computer · 14 minDisk full on a log-heavy nodeRead it here, do it on a computer

Weak and strong answers

Prompt: "The checkout service is returning errors."Weak: "I would restart the service and check the logs." Passing: "I would check whether a deploy just went out, look at the error rate graph, then read the service logs for the failing requests." Strong: "First, is it every host or some, and did anything change in the last hour? If one host, I take it out of rotation and keep it for diagnosis. The health check says the log writer cannot write, so my first hypothesis is a full disk; df -h and df -i will confirm it. Meanwhile I post in the incident channel that checkout is degraded on one host, traffic has been moved, and I will update in ten minutes."

Common mistakes

  • Restarting first. It destroys the evidence and the problem returns.
  • Running a destructive command, such as deleting files, without saying what it will do.
  • Chasing root cause while users are still affected.
  • Changing two things at once, so you cannot tell which one helped.
  • Going quiet. Five silent minutes look the same as being lost.
  • Declaring victory without checking that the user-facing symptom is gone.