After scaling a gRPC service from 4 to 12 pods, `DEADLINE_EXCEEDED` errors increase and the new pods sit idle.

AdvancedTroubleshooting5xx errors
Answer

Likely causes → gRPC uses long-lived HTTP/2 connections. A Kubernetes ClusterIP Service balances per connection (L4), so existing clients stay pinned to the original 4 pods, which are overloaded, while new pods get nothing.

Diagnose → Per-pod request rate shows a wildly uneven split. kubectl top pods confirms the old pods are hot.

Fix → Use L7 balancing: a service mesh or Envoy, client-side round-robin with a headless Service (clusterIP: None) and dns:/// resolver, or server-side MaxConnectionAge so clients reconnect and spread out.

Prevent → Make L7-aware load balancing the default for gRPC, and dashboard per-pod RPS skew.

All Real-World Interview questions Roadmap: Interview readiness

More on 5xx errors