Skip to content
mentoor

Topic 2 of 5 · 5 min read

Triage in the first fifteen minutes

Goal: Choose the first mitigation step from an incident timeline and justify rolling back before debugging.

In the first fifteen minutes of an incident, stop the harm first and find the cause second. If a recent change is the likely trigger, undoing it is usually faster and safer than understanding it.

Check yourself · 1 of 3

A deploy 5 minutes ago correlates with a spike in errors. What is the best first step?

Choose one answer

Why it matters

Under pressure, engineers want to know why. That is natural, and it keeps users broken. Root cause analysis can take hours. Rolling back a deploy or turning off a flag takes minutes. You can investigate calmly after the bleeding stops, with the failing version still available to study.

The first fifteen minutes

  1. Confirm and size it. Look at the alert, the dashboard and one real user path. Is it real, how many users, since when? Write the start time down.
  2. Name the roles. Even with three people: one incident commander who decides and keeps the timeline, one operator who touches systems, one communicator who posts updates. Everyone else stays out of the way and reports findings to the commander.
  3. Ask what changed. Deploys, flags, config, migrations, a cron job, a dependency, an agent run. Most incidents line up with a change in the last hour.
  4. Mitigate. In order of speed: turn off the flag, roll back the deploy, shift traffic away, scale up, restore a known good config. Pick the one that is quick and reversible.
  5. Post a status update every 15 to 30 minutes, even if it says "no change". Say what users see, what you are doing, and when the next update comes.

Using an assistant carefully

An assistant such as ChatGPT, Claude or Gemini can summarise a long log or group similar errors fast. Treat its output as a lead, not a finding. Models invent causes that sound right. Always open the log lines it cites, and check that the first error time in the log matches the incident start. Never paste secrets or customer data into a tool your company has not approved.

Before and after

Weak:

14:10 error spike. 14:12 team opens the code to find the bug. 14:50 still reading stack traces. 15:05 someone suggests the deploy.

Better:

14:07 alert: checkout 5xx at 4% (normal 0.1%)
14:09 IC assigned; deploy at 14:02 touched payment client
14:11 decision: roll back deploy 4812 before debugging
14:14 rollback complete; 5xx back to 0.2% by 14:17
14:20 status posted; root cause work begins on a copy of the bad build

What goes wrong

  • Debugging while users are down. The fix feels close, so nobody rolls back.
  • Too many people in the call, no commander. Two engineers change things at once and nobody knows which action helped.
  • Silence. Support and customers get no news, so they escalate.
  • Trusting a summary. The assistant blames a timeout that actually started after the outage.

Examples

Rollback beats debugging

A deploy at 09:40 raises login errors to 6%. The team can see a suspicious line in the auth client, but the fix is untested. The commander says: roll back first. At 09:46 errors drop to normal. The engineers then reproduce the bug on a staging copy, fix it, and ship the next day with a canary.

Checking an assistant summary

You paste 2,000 log lines into an assistant. It says "database timeouts caused the outage." You search the log: the first timeout appears at 14:21, but errors started at 14:07. The timeouts are a symptom of retries, not the cause. You keep the deploy rollback as the main lead.

Key points

  • Mitigate first with the fastest reversible action, then diagnose after users are safe.
  • Ask what changed in the last hour before reading any code.
  • Assign an incident commander, an operator and a communicator, even on a small team.
  • Post a status update on a regular rhythm, including when nothing has changed.
  • Treat an assistant summary of logs as a lead and verify it against the raw lines and times.

Common mistakes

  • Chasing the root cause while the known fix, a rollback, is available and cheap.
  • Letting everyone act at once, so changes overlap and nobody can say what worked.
  • Posting no status updates because there is nothing new to say.
  • Accepting an assistant summary without opening the log lines it cites.

Check yourself · 2 of 3

What does an incident commander do during triage?

Choose one answer

Check yourself · 3 of 3

An assistant summarises your logs and names a cause. What should you do before acting on it?

Choose one answer

Practice items, not counted towards your mastery.

Start here

More for this topic