Skip to content

Instantly share code, notes, and snippets.

@askmeegs
Created October 17, 2019 22:38
Show Gist options
  • Select an option

  • Save askmeegs/467d8aa75766658d41a7eeb6fa26b61d to your computer and use it in GitHub Desktop.

Select an option

Save askmeegs/467d8aa75766658d41a7eeb6fa26b61d to your computer and use it in GitHub Desktop.
Circuit Breaker - Hipstershop
apiVersion: networking.istio.io/v1alpha3
kind: DestinationRule
metadata:
name: frontend-dr
spec:
host: frontend
trafficPolicy:
connectionPool: #client connections to frontend
tcp:
maxConnections: 1 # num. clients envoy will allow to frontend at any time
http:
http1MaxPendingRequests: 1 # size of the request queue for frontend
maxRequestsPerConnection: 1
# scan frontend every second. if > 1 consecutive 5XX error, remove frontend from the pool for 3mins
outlierDetection:
interval: 1s
consecutiveErrors: 1
baseEjectionTime: 3m
maxEjectionPercent: 100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment