You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2022/05/30 07:07:40 UTC

[GitHub] [dubbo] simonally opened a new issue, #10104: duubo3 应用级注册到nacos 不能指定分组,怎么解决多人同时用一个注册中心?

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

   需求:多人用同一个注册中心,根据mapping配置项,会指向一个应用名称;其他同事的也会注册这个名称;根据源码描述;消费者不关注提供者的分组;调试的时候,会调用其他同事电脑上的server;


-- 
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] chickenlj commented on issue #10104: duubo3 应用级注册到nacos 不能指定分组,怎么解决多人同时用一个注册中心?

Posted by GitBox <gi...@apache.org>.
chickenlj commented on issue #10104:
URL: https://github.com/apache/dubbo/issues/10104#issuecomment-1154603588

   Nacos 注册中心的 group 配置需要具体分析一下,目前是全部注册到了默认分组,但有如下代码说明:
   
   ```java
   @Override
       public void doRegister(ServiceInstance serviceInstance) {
           execute(namingService, service -> {
               Instance instance = toInstance(serviceInstance);
               // Should not register real group for ServiceInstance
               // Or will cause consumer unable to fetch all of the providers from every group
               // Provider's group is invisible for consumer
               service.registerInstance(instance.gstServiceName(), Constants.DEFAULT_GROUP, instance);
           });
       }
   ```


-- 
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] chickenlj closed issue #10104: duubo3 应用级注册到nacos 不能指定分组,怎么解决多人同时用一个注册中心?

Posted by GitBox <gi...@apache.org>.
chickenlj closed issue #10104: duubo3 应用级注册到nacos 不能指定分组,怎么解决多人同时用一个注册中心?
URL: https://github.com/apache/dubbo/issues/10104


-- 
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] chickenlj commented on issue #10104: duubo3 应用级注册到nacos 不能指定分组,怎么解决多人同时用一个注册中心?

Posted by GitBox <gi...@apache.org>.
chickenlj commented on issue #10104:
URL: https://github.com/apache/dubbo/issues/10104#issuecomment-1154857467

   在应用级服务发现下,Nacos 目前只能注册到默认分组,在开发阶段,可以通过配置服务的不通 group 分组来解决。


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