Latency rose by 30–50 ms per hop after injecting Istio sidecars, and some calls now hit "upstream request timeout".
IntermediateTroubleshootingLatency
Answer
Likely causes → Sidecars under-provisioned (CPU throttled Envoy), mTLS handshakes on short-lived connections, a default 15s route timeout lower than slow endpoints need, or retries stacked on app retries.
Diagnose →
kubectl top pod api-xxx -n prod --containers
istioctl proxy-config routes deploy/api -n prod -o json | jq '.. | .timeout? // empty'
kubectl logs api-xxx -c istio-proxy -n prod | grep -E ' (504|503) '
Fix → Give istio-proxy adequate CPU requests, set explicit timeout in VirtualServices, and keep retries in one layer only.
Prevent → Load test with the mesh enabled before rollout and dashboard Envoy upstream latency separately from app latency.
More on Latency
p99 latency jumped from 200 ms to 3 s right after a deploy; error rate is flat.BeginnerThe API is slow, the database shows 100% CPU, and the slow query log is full of one query doing a sequential scan.BeginnerA JVM service has latency spikes every 30–60 seconds; GC logs show "Pause Full (G1 Compaction Pause)" taking 4 seconds.IntermediateThe first request after idle takes 5 seconds; Lambda logs show "Init Duration: 4512.33 ms".BeginnerLatency grows with traffic and logs show "QueuePool limit of size 5 overflow 10 reached, connection timed out, timeout 30.00".IntermediateA container uses only 40% of its CPU limit on average, yet latency is high; `container_cpu_cfs_throttled_periods_total` keeps rising.Advanced