carryxyh commented on issue #2419: Server side loadbalance problem URL: https://github.com/apache/incubator-dubbo/issues/2419#issuecomment-418258343 `client side or server side hight priority.` Check the dubbo-user-book. `mixed loadbalance stragy priority.` This is incorrect, but if it appeared, a random one(I mean not RandomLoadBalance but random one of all the LoadBalance) may be used. The code to init loadbalance is: ``` if (CollectionUtils.isNotEmpty(invokers)) { return ExtensionLoader.getExtensionLoader(LoadBalance.class).getExtension(invokers.get(0).getUrl() .getMethodParameter(RpcUtils.getMethodName(invocation), Constants.LOADBALANCE_KEY, Constants.DEFAULT_LOADBALANCE)); } ``` The important code is `invokers.get(0).getURL()`. `How to distinguish between two service providers when it's host and port are same.(include service interface).` Maybe use 'group'.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
