Debug an overloaded Kubernetes cluster
I was asked this
No reports yet. Sign in to say where you were asked it.
A system design interview question asked in Perplexity's technical screen or assessment, last asked Aug 2025. It tests kubernetes, debugging and reliability.
A service made of microservices on Kubernetes is overloaded: tail latency is high, requests time out, and the autoscaler keeps scaling up and down. Debug it and stop the overload, end to end. Say which metrics you want to see first; the interviewer describes or draws what they show, and you narrow the cause from there. Expect questions on how well you know Kubernetes itself (pods, requests and limits, autoscaling, scheduling) and on how you keep the overload from coming back.
Requirements
- Find the cause from metrics, logs and traces, testing one hypothesis at a time.
- Name the tools and commands you would use (
kubectl top,kubectl describe, events, dashboards, traces). - Separate immediate mitigation from longer-term fixes.
Clarifying questions
- Did anything change recently: a deploy, a config change, a traffic spike, a new client?
- Is the overload in one service or spread across many? Which endpoints?
- What does the horizontal pod autoscaler scale on, with what thresholds and limits?
- Are nodes full (pending pods), or are pods running but slow?
- What do downstream dependencies (databases, caches, external APIs) show?
What a strong answer covers
- Starting from the golden signals (traffic, latency, errors, saturation) per service, then narrowing with traces to the slow hop.
- Pod-level causes: CPU throttling from low limits, out-of-memory kills and restarts, readiness probes failing under load and pulling pods out, slow start-up after scaling.
- Cluster-level causes: pending pods with no node capacity, cluster autoscaler delay, noisy neighbors, uneven spread across nodes.
- Autoscaling thrash explained: a metric that lags or swings, too-short stabilization windows, scaling on CPU when the bottleneck is elsewhere.
- Overload amplifiers: retry storms, missing timeouts, connection pool exhaustion, a slow dependency backing up every caller.
- Mitigation first (scale out, shed load, rate-limit, roll back), then fixes: right-sized requests and limits, better autoscaling signals and windows, backpressure, circuit breakers, load tests and alerts.
Follow-ups
- CPU is low but latency is high. Where do you look?
- Scaling out made things worse. Why might that be?
- How do you prevent a retry storm from turning a small slowdown into an outage?
Where it's asked
- Perplexity · Technical screen or assessment · Last asked Aug 2025Online assessment or live coding (often CoderPad); problems come in parts, each adding a requirement to your code · Assume no AI unless the recruiter says otherwise
What it tests
kubernetes · debugging · reliability
No official answer yet. Draw yours on the right; publish it and it shows under Community.
Nothing published yet. Publish your canvas and it shows here for others to open and remix.
