huangdong-new opened a new issue #2182:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2182
问题描述:
转发的REST请求会先走provider的限流策略,然后再走cosumer的限流策略。
配置项如下:
handler:
chain:
Provider:
default: qps-flowcontrol-provider
Consumer:
default: qps-flowcontrol-consumer,loadbalance
flowcontrol:
Provider:
qps:
enabled: true
strategy: FixedWindow
global:
limit: 2147483647
Consumer:
qps:
enabled: true
strategy: FixedWindow
global:
limit: 10000
limit:
dsc-cim-service: 2
dsc-contacts-service: 2
外部调用URL:
/dsc-cim-service/v1/userProfileQuery
打点调试,发现请求会先到Provider的流控handler:

然后再走cusumer的流程handler:

流控JAR包版本:
handler-flowcontrol-qps-1.2.0.B017r2.jar
这个情况是我哪里配置错误吗?还是正常流程就是这个情况?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]