dotnet / dotnet/yarp

Degraded health state

Open
#1,011 0 comments 3 reactions 0 assignees View on GitHub
Type: Idea
Dominant language
C#
Stars
9.6k
Forks
933
Avg merge
12d 18h
Merged PRs (30d)
2

Description

Currently a destination's health may be marked as Unknown, Unhealthy, or Healthy.

ASP.NET Core also supports a Degraded state:
https://github.com/dotnet/aspnetcore/blob/a31f34e8a1618210dc47675d667180765203cdfb/src/HealthChecks/Abstractions/src/HealthStatus.cs#L30

This might be useful when filtering and prioritizing destinations for traffic. E.g. a degraded destination may be sporadically returning errors, but that's still better than an unhealthy endpoint that's unreachable.

Contributor guide

Open the contributing guide

Research direction

Start by reading the linked ASP.NET Core HealthStatus definition, then trace YARP's destination health representation and the code that filters or prioritizes destinations for traffic. Done means destinations can represent the Degraded state and the existing health-based selection behavior can distinguish it from Healthy and Unhealthy.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.