You suspect a memory leak is causing pods to OOM every few hours, triggering errors. Mitigate and investigate.
IntermediateScenarioRunning Incidents
Answer
Situation read → Recurring OOMs cause request failures during restarts. Mitigation buys time; investigation finds the leak.
What I'd do →
- Confirm:
kubectl get pods -n shopshows restarts;kubectl describe podshowsLast State: Terminated, Reason: OOMKilled. - Mitigate: increase memory limit temporarily, add replicas so restarts hurt less.
- Correlate memory growth with the version that introduced it (deploy annotations on the memory graph).
- Capture a heap dump or profile before the next OOM (pprof, jmap, py-spy) on a canary pod.
- Roll back to the previous version if the leak started with a deploy.
Why → Mitigate user impact first, then collect evidence while it is still reproducible.
Interview tip → Mention capturing evidence before it disappears.
More on Running Incidents
You're paged at 2 AM: CheckoutErrorBudgetBurnFast. Walk through your first 10 minutes.BeginnerDuring an incident, three senior engineers are all debugging in different directions and nobody is updating stakeholders.IntermediateError rate spikes 5 minutes after a deploy, but the developer insists their change can't be the cause.BeginnerLatency doubled across all services at the same time, with no deploys. Where do you look?AdvancedA SEV-1 has been running for 3 hours. People are tired and making mistakes. What do you do as IC?IntermediateHalfway through an incident, you discover the "fix" someone applied made it worse.Beginner