18205097282 opened a new issue #9679:
URL: https://github.com/apache/dubbo/issues/9679


   在多个注册中心的情况下
   
   用以下代码主动选择对应zone的注册中心 
   `RpcContext.getContext().setAttachment("registry_zone", "A");`
   
   和用dubbo.registry.default选择默认注册中心
   `        <dubbo:registry address="nacos://192.168.43.152:8840" zone="A"/>
           <dubbo:registry address="nacos://192.168.43.152:8848" zone="B" 
default="false"/>`
   
   以上两个主动选择注册中心的功能在 注册中心为Zookeeper时正常工作,当注册中心为nacos时不起作用。
   Dubbo版本为2.7.14
   nacos版本为1.4.3


-- 
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]

Reply via email to