Created
October 17, 2019 22:38
-
-
Save askmeegs/467d8aa75766658d41a7eeb6fa26b61d to your computer and use it in GitHub Desktop.
Circuit Breaker - Hipstershop
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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