Table of Contents

Class TransportFailureRateHealthPolicyOptions

Namespace
Yarp.ReverseProxy.Health
Assembly
Yarp.ReverseProxy.dll

Defines options for the transport failure rate passive health policy.

public class TransportFailureRateHealthPolicyOptions
Inheritance
TransportFailureRateHealthPolicyOptions
Inherited Members

Constructors

TransportFailureRateHealthPolicyOptions()

public TransportFailureRateHealthPolicyOptions()

Fields

FailureRateLimitMetadataName

Name of failure rate limit metadata parameter. Destination marked as unhealthy once this limit is reached.

public static readonly string FailureRateLimitMetadataName

Field Value

string

Properties

DefaultFailureRateLimit

Default failure rate limit for a destination to be marked as unhealhty that is applied if it's not set on a cluster's metadata. It's calculated as a percentage of failed requests out of all requests proxied to the same destination in the DetectionWindowSize period. The value is in range (0,1). The default is 0.3 (30%).

public double DefaultFailureRateLimit { get; set; }

Property Value

double

DetectionWindowSize

Period of time while detected failures are kept and taken into account in the rate calculation. The default is 60 seconds.

public TimeSpan DetectionWindowSize { get; set; }

Property Value

TimeSpan

MinimalTotalCountThreshold

Minimal total number of requests which must be proxied to a destination within the detection window before this policy starts evaluating the destination's health and enforcing the failure rate limit. The default is 10.

public int MinimalTotalCountThreshold { get; set; }

Property Value

int