Interview Prep/Real-World Interview/Scaling and performance

One pod in a deployment is much slower than the others. How do you investigate?

BeginnerScenarioScaling and performance
Answer

Situation read → Same image, same config, different behaviour: the difference is the node, the data it's handling, or its own internal state.

What I'd do →

  1. Find where it runs and compare with healthy pods:
kubectl get pod api-7f9 -n prod -o wide
kubectl top pod -n prod -l app=api
kubectl top node <node>
  1. Check the node: CPU steal, disk pressure, other heavy pods, network errors.
  2. Check the pod: memory near limit (GC thrash), restarts, stuck threads, a hot key or sticky session sending it more traffic.
  3. Delete the pod to see if a fresh one on another node is fine; if yes, cordon the node and investigate it.
  4. If it recurs randomly, add anti-affinity or topology spread so pods don't stack on a single node.

Why → Isolating pod versus node narrows the search fast.

Interview tip → Say you'd capture evidence (logs, a thread dump) before deleting the pod.

All Real-World Interview questions Roadmap: Interview readiness

More on Scaling and performance