Interview Prep/SRE & Reliability/Reliability Patterns in Production

Clients get 503s with body `upstream connect error or disconnect/reset before headers. reset reason: overflow`, and Envoy logs show flag `UO`.

AdvancedTroubleshootingReliability Patterns in Production
Answer

Likely causes → The Istio/Envoy circuit breaker tripped: the DestinationRule connectionPool limits (maxConnections, http1MaxPendingRequests, http2MaxRequests) are lower than the current concurrency. UO means upstream overflow.

Diagnose →

kubectl get destinationrule -n shop inventory -o yaml
kubectl exec -n shop deploy/checkout -c istio-proxy -- \
  pilot-agent request GET stats | grep -E "upstream_rq_pending_overflow|upstream_cx_overflow"

Fix → If the limit is protecting a genuinely saturated service, it is working; fix capacity. If the limits were set too low, raise them based on Little's Law (RPS x latency) with headroom.

Prevent → Size connection pool limits from load tests and alert on overflow counters.

All SRE & Reliability questions

More on Reliability Patterns in Production