Sentinel-block.log Why are there multiple current limit logs in one second?
问题:从日志上看觉得一个请求同时被两个规则同时拦住
期望:一个请求只会被一个规则拦截住
重现:在ParamFlowQpsDemo的initParamFlowRules方法中加入一条流控规则
List
Hi @yehuali, we detect non-English characters in the issue. This comment is an auto translation from @sentinel-bot to help other users to understand this issue. We encourage you to describe your issue in English which is more friendly to other users.
Sentinel-block.log Why are there multiple current limit logs in one second?
Question: From the log, I feel that a request is blocked by both rules at the same time.
Expectation: A request will only be blocked by a rule
Reproduce: Add a flow control rule to the initParamFlowRules method of ParamFlowQpsDemo
List
推测是那个日志记录类,把限流的信息聚合后,按秒记录了
参考:https://github.com/alibaba/Sentinel/wiki/Metrics#history-resource-metrics
如果有block出现,${home}\logs\csp\sentinel-block.log会按秒把不同的异常的block数等记录下来。
这里理解日志可能需要注意,它是聚合后的指标数据,不是每次请求同时被两个规则拦住产生了两个不同的异常。