Interview › Istio & Service Mesh
What are timeouts in Istio, and how do they interact with retries?
Istio & Service Mesh · Basic level
Answer
A timeout defines the maximum time a request is allowed to take before Envoy stops waiting. Timeouts and retries must be designed together because each retry consumes part of the overall latency budget.
Technical explanation
If the overall timeout is 1 second and perTryTimeout is 400 ms with 2 retries, there is little room for network and application variability.
Too-long timeouts keep resources tied up and increase queueing; too-short timeouts cause false failures.
Timeouts should align with upstream SLOs, downstream behavior, and client expectations.
Hands-on example
Example budget:
Client SLA: 2s.
Gateway timeout: 1800ms.
Service A to Service B timeout: 800ms.
Retries: attempts=2, perTryTimeout=250ms.
Validation:
$ fortio load -qps 50 -t 2m http://checkout/Watch p95, p99, retry count, and 5xx rate.
Check how well your resume matches the role with our free resume checker— match score, ATS check, and the skills you're missing.
More Istio & Service Mesh interview questions
- How do you inject delays or aborts to test resilience with Istio?
- What is outlier detection, and how does it eject unhealthy hosts?
- What is fault injection in Istio, and why would you use it?
- What is mutual TLS (mTLS), and how does Istio provide it automatically?
- How does Istio do request routing based on headers or paths?
- What are subsets in a DestinationRule, and how are they used?
- How do you implement a blue-green deployment using Istio?
- What is a PeerAuthentication policy?