Circuit Breaker¶
In case of a failure attempt when connecting with back end , circuit breaker config specifies how to respond to subsequent requests to same back end. Based on the config, the circuit will be remain close allowing back end to be queried, or circuit will be open where gateway will not contact backend and respond from gateway itself. This kind of mechanism is required to prevent overloading backend services during a high load.
x-wso2-production-endpoints:
urls:
- https://localhost:2380/v3
advanceEndpointConfig:
circuitBreaker:
rollingWindow:
requestVolumeThreshold: 1
timeWindowInMillis: 60000
bucketSizeInMillis: 2000
failureThreshold: 0.2
resetTimeInMillis: 5000
statusCodes:
- 500
|