alibaba / alibaba/Sentinel

Expand more statistic dimensions( such as 20s, 1min, 20min), not only for 1 second | 流控规则支持自定义统计时长

Open
#263 2 comments 0 reactions 0 assignees View on GitHub
area/flow-control kind/feature
Dominant language
Java
Stars
23.1k
Forks
8.1k
PR merge metrics
No merged PRs in 30d

Description

## Issue Description

*feature request*

### Describe what happened (or what feature you want)
In some situation, we want to perform flow control not only based on the statistics of 1 second. For example, as for some origin/callers, we wanna count the call times in 1 minute and block the caller if the count exceeds the threshold. Sentinel does not support this kind of statistics.

### Describe what you expected to happen
Sentinel supports more statistic dimension of unit. It would be perfect if programmers can build the statistic rule by setting count parameters.

### How to reproduce it (as minimally and precisely as possible)

1.
2.
3.

### Tell us your environment

### Anything else we need to know?

Contributor guide

Open the contributing guide

Research direction

The issue does not name any files, tests, or entry points. Start by locating Sentinel's statistic and flow-control implementation, then define how configurable windows such as 20 seconds, 1 minute, and 20 minutes should be represented and verified; done means rules can count within those configured durations and enforce their thresholds.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.