studyyun opened a new issue #9650: URL: https://github.com/apache/dubbo/issues/9650
<!-- If you need to report a security issue please visit https://github.com/apache/dubbo/security/policy --> - [ ] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate. org.apache.dubbo.rpc.cluster.loadbalance.LeastActiveLoadBalance#doSelect:line 63 `int active = RpcStatus.getStatus(invoker.getUrl(), invocation.getMethodName()).getActive(); ` 这个值的增大只出现在 org.apache.dubbo.rpc.RpcStatus#beginCount(org.apache.dubbo.common.URL, java.lang.String, int) 这个方法中,而这个方法的调用只出现在ActiveLimitFilter、ExecuteLimitFilter两个类中,而ExecuteLimitFilter是provider端的并发控制过滤器。 ## 疑问 如果想使用LeastActiveLoadBalance负载策略,是不是必须在消费端配置中添加配置项dubbo.consumer.actives,以触发ActiveLimitFilter,达到增大RpcStatus.active值的效果。否则RpcStatus.getStatus(invoker.getUrl(), invocation.getMethodName()).getActive();获取到的值永远都是0。 **PS:目前我本地验证是这样的** -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
