alibaba / alibaba/Sentinel

同个资源多条网关流控规则优先级问题 | Priority of multiple gateway flow rules for the same resource

Open
#2,858 0 comments 0 reactions 0 assignees View on GitHub
kind/question
Dominant language
Java
Stars
23.1k
Forks
8.1k
PR merge metrics
No merged PRs in 30d

Description

我配置了3条网关限流规则,分别如下:
A
![image](https://user-images.githubusercontent.com/13881307/187643648-a4b1f23d-3b5c-463a-88ba-e4928710dbde.png)
B
![image](https://user-images.githubusercontent.com/13881307/187643793-d34c5ccf-3b69-44ef-8330-71d7f312c1ff.png)
C
![image](https://user-images.githubusercontent.com/13881307/187643846-cd24156e-32bc-4ff2-b919-bdce2eb466d0.png)

我以为那APP_ID为1的应用去调用2次之后会被限流,但实际是调用6次之后才被限流,想问下这块优先级是怎么样的?

按照上图ABC的配置,我期望的是1分钟内 APP_ID为1的应用在调用2次后被限流,其它应用调用3次后被限流,另外1分钟合计被掉6次后被限流

Contributor guide

Open the contributing guide

Research direction

The issue names no files, tests, or entry points. Start by reproducing the three gateway rules and comparing the observed six-request limit with the expected per-application and aggregate limits. Done means the precedence between same-resource rules is established and the behavior or its documentation is updated accordingly.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, backend
Issue type
Bug
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.