ThreeMammals / Ocelot

.NET API Gateway
https://www.nuget.org/packages/Ocelot
MIT License
8.24k stars 1.62k forks source link

`FailureRatio` and `SamplingDuration` parameters of Polly V8 circuit-breaker #2080

Open RaynaldM opened 1 month ago

RaynaldM commented 1 month ago

Add two parameters in QoSOptions:

The aim is to take better advantage of Polly's circuit-breaker possibilities, and to manage circuit-break conditions more finely, on a case-by-case basis.

Currently, these 2 parameters are set by default (and in hard coded) with an error ratio of 80% and a sample duration of 10 seconds. These values may not suit everyone.