You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "HeZhanfeng (via GitHub)" <gi...@apache.org> on 2023/04/04 07:17:32 UTC

[GitHub] [dubbo] HeZhanfeng opened a new issue, #11991: 消费者和提供者在同一个服务时负载均衡失效

HeZhanfeng opened a new issue, #11991:
URL: https://github.com/apache/dubbo/issues/11991

   消费者和提供者在同一个服务,请求总是打在本地的提供者上,跟源码发现我注册中心有多个提供者,但AbstractClusterInvoker.doSelect()方法的invokers参数值永远只有一个导致请求总是在本地的提供者上
   


-- 
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: notifications-unsubscribe@dubbo.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] MieAh commented on issue #11991: 消费者和提供者在同一个服务时负载均衡失效

Posted by "MieAh (via GitHub)" <gi...@apache.org>.
MieAh commented on issue #11991:
URL: https://github.com/apache/dubbo/issues/11991#issuecomment-1495511832

   跟如下特性相关[本地调用](https://cn.dubbo.apache.org/zh-cn/overview/mannual/java-sdk/advanced-features-and-usage/service/local-call/)
   每个服务默认都会在本地暴露。在引用服务的时候,默认优先引用本地服务。如果希望引用远程服务可以使用一下配置(推荐Scope)强制引用远程服务。


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


Re: [I] 消费者和提供者在同一个服务时负载均衡失效 [dubbo]

Posted by "wxbty (via GitHub)" <gi...@apache.org>.
wxbty closed issue #11991: 消费者和提供者在同一个服务时负载均衡失效
URL: https://github.com/apache/dubbo/issues/11991


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] HeZhanfeng commented on issue #11991: 消费者和提供者在同一个服务时负载均衡失效

Posted by "HeZhanfeng (via GitHub)" <gi...@apache.org>.
HeZhanfeng commented on issue #11991:
URL: https://github.com/apache/dubbo/issues/11991#issuecomment-1495528624

   官方文档-配置项手册里没有找到这个配置,
   @DubboReference(scope = "remote", loadbalance = LoadbalanceRules.ROUND_ROBIN) 这样可以解决我的问题
   感谢!


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org