You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version: V1.8.7
I use the dashboard to raise a related resource flow control as follow.
我使用dashboard创建了一个关联规则如下:
As user, we will think the base control of "hello" will limit the qps under 1. And flow limit of the resource "helloAnother" will cause the limit to "hello". But the fact seems to be different. The flow control rule with QPS limit of 1 does not seem to be in effect.
作为用户,我们会认为hello资源会被限制在QPS为1和之下,以及helloAnother的限流也会导致hello资源的限流。但是实际情况貌似不是这样的,对QPS限制为1的规则似乎并没有生效。
I follow with the debug to find FlowRuleChecker#passLocalCheck. It gets ClusterNode of "helloAnother" when visit resource "hello". The qps of "hello" is ignored.
我跟随了代码找到 FlowSlot,以及 FlowRuleChecker#passLocalCheck,在访问资源hello时,它获取的数据统计节点是资源helloAnother的,对于资源hello的qps并没有参与计算,导致hello的qps被忽略了。
Describe what happened
The flow control rule with QPS limit of 1 does not seem to be in effect.
Describe what you expected to happen
QPS higher than 1 and flow limit of "helloAnother" resources can both lead to flow limit of "hello" resource.
How to reproduce it (as minimally and precisely as possible)
Start the sentinel-demo-annotation-spring-aop.
Create a related resource rule for "hello" resource in demo. Limit the qps under 1 and link with resource "helloAnother".
Try to visit /foo in brower.
Tell us your environment
Anything else we need to know?
The text was updated successfully, but these errors were encountered:
Issue Description
Version: V1.8.7
I use the dashboard to raise a related resource flow control as follow.
我使用dashboard创建了一个关联规则如下:
As user, we will think the base control of "hello" will limit the qps under 1. And flow limit of the resource "helloAnother" will cause the limit to "hello". But the fact seems to be different. The flow control rule with QPS limit of 1 does not seem to be in effect.
作为用户,我们会认为hello资源会被限制在QPS为1和之下,以及helloAnother的限流也会导致hello资源的限流。但是实际情况貌似不是这样的,对QPS限制为1的规则似乎并没有生效。
I follow with the debug to find
FlowRuleChecker#passLocalCheck
. It getsClusterNode
of "helloAnother" when visit resource "hello". The qps of "hello" is ignored.我跟随了代码找到
FlowSlot
,以及FlowRuleChecker#passLocalCheck
,在访问资源hello时,它获取的数据统计节点是资源helloAnother的,对于资源hello的qps并没有参与计算,导致hello的qps被忽略了。Describe what happened
The flow control rule with QPS limit of 1 does not seem to be in effect.
Describe what you expected to happen
QPS higher than 1 and flow limit of "helloAnother" resources can both lead to flow limit of "hello" resource.
How to reproduce it (as minimally and precisely as possible)
Tell us your environment
Anything else we need to know?
The text was updated successfully, but these errors were encountered: