alibaba / alibaba/Sentinel

Degrade by RT should consider inflight request

Open
#1,405 4 comments 0 reactions 0 assignees View on GitHub
area/circuit-breaking kind/enhancement
Dominant language
Java
Stars
23.1k
Forks
8.1k
PR merge metrics
No merged PRs in 30d

Description

## Issue Description

Type: *feature request*

### Describe what happened (or what feature you want)

Now degrading by RT only consider finished requests because rt stat is collected when exit, but it ingores inflight requests. I thinks it is not accurate:
When the count of inflight and overtime requests has exceeds threshold, but Sentinel will allow the below requests.

### Describe what you expected to happen

### Tell us your environment

### Anything else we need to know?

Contributor guide

Open the contributing guide

Research direction

Start by tracing how RT statistics are collected when requests exit and how degradation thresholds are evaluated. Determine how inflight and overtime requests should affect the threshold decision, then add coverage for the described case and verify that Sentinel no longer allows requests when the combined count exceeds the threshold.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend, distributed-systems
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.