How does Istio implement circuit breaking?
AdvancedConceptRelease Engineering & Reliability Patterns
Answer
Through a DestinationRule: connectionPool limits concurrent connections and pending requests (excess gets an immediate 503 with response flag UO, upstream overflow), and outlierDetection ejects hosts that return consecutive errors.
apiVersion: networking.istio.io/v1
kind: DestinationRule
metadata: {name: inventory}
spec:
host: inventory.shop.svc.cluster.local
trafficPolicy:
connectionPool:
tcp: {maxConnections: 100}
http: {http1MaxPendingRequests: 50, maxRequestsPerConnection: 10}
outlierDetection:
consecutive5xxErrors: 5
interval: 10s
baseEjectionTime: 30s
maxEjectionPercent: 50
More on Release Engineering & Reliability Patterns
Why are releases the biggest source of incidents, and what does SRE do about it?BeginnerWhat is a canary release?BeginnerWhat is progressive delivery?IntermediateShow an Argo Rollouts canary with a Prometheus analysis.AdvancedBlue-green vs canary: when do you choose each?IntermediateWhat are feature flags and how do they improve reliability?Beginner