Skip to content

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

Open
@RaynaldM

Description

@RaynaldM

Add two parameters in QoSOptions:

  • FailureRatio: The failure-success ratio that will cause the circuit to break/open.
  • SamplingDuration: The time period over which the failure-success ratio is calculated (in seconds).

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.

Metadata

Metadata

Assignees

Labels

ConfigurationOcelot feature: ConfigurationQoSOcelot feature: Quality of Service aka PollySpring'25Spring 2025 releasefeatureA new featureproposalProposal for a new functionality in Ocelotsmall effortLikely less than a day of development effort.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions