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/10/10 05:28:30 UTC

[GitHub] [dubbo] wangshuaipei opened a new issue, #10721: dubbo的consumer作为服务注册到nacos

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

   <!-- 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.
   
   ## Ask your question here
   dubbo注册到nacos上,consumers和providers都作为服务注册到nasos上并在同一个服务列表中,导致nacos认为服务过多,达到设置的警告阈值,请问consumer是否可以不作为服务注册到nacos注册中心上?
   ![lQLPJxbDpB1F-5HNAg3NBqawSJ9otZUOExEDQZrJ7QAdAA_1702_525 1](https://user-images.githubusercontent.com/41528403/194803460-eb9325b0-5c9b-4ce9-b7e8-fdbafd05329d.png)
   


-- 
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] wangshuaipei commented on issue #10721: dubbo的consumer作为服务注册到nacos

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

   我的dubbo版本是2.5.9,2.X的好像都是会注册consumer的吧,有什么方法可以不注册吗?


-- 
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] wangshuaipei commented on issue #10721: dubbo的consumer作为服务注册到nacos

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

   dubbo-monitor监控看不到对应的消费者,但是nacos的服务订阅者还是能找出来对应哪个应用会消费到这个服务


-- 
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] wangshuaipei commented on issue #10721: dubbo的consumer作为服务注册到nacos

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

   > > 我的dubbo版本是2.5.9,2.X的好像都是会注册consumer的吧,有什么方法可以不注册吗?
   > 
   > consumer端 dubbo.registry=false配置一下看看
   
   如果dubbo服务是单纯的消费服务,通过dubbo.registry.register=false 可以不向nacos注册,但是dubbo的监控上面对应的服务消费者也就没有了;
   我们有很大一部分服务作为服务消费者的同时,也是作为服务提供者,这种情况下,我应该怎么做?


-- 
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] tiancaipei commented on issue #10721: dubbo的consumer作为服务注册到nacos

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

   ![image](https://user-images.githubusercontent.com/41528403/203909765-3ef29692-38e3-4d7a-9213-c829b0ed11e2.png)
   ![image](https://user-images.githubusercontent.com/41528403/203914037-4fe92a76-57be-45a8-b210-c098925cf796.png)
   register-consumer 默认就是fals,但是服务的消费者还是会向注册中心注册,在这里判断之前就注册了
   ![image](https://user-images.githubusercontent.com/41528403/203914215-401d7963-1971-4ec3-819e-cbe6ae271843.png)
   


-- 
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] wangshuaipei closed issue #10721: dubbo的consumer作为服务注册到nacos

Posted by GitBox <gi...@apache.org>.
wangshuaipei closed issue #10721: dubbo的consumer作为服务注册到nacos
URL: https://github.com/apache/dubbo/issues/10721


-- 
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] AlbumenJ commented on issue #10721: dubbo的consumer作为服务注册到nacos

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

   > > > 我的dubbo版本是2.5.9,2.X的好像都是会注册consumer的吧,有什么方法可以不注册吗?
   > > 
   > > 
   > > consumer端 dubbo.registry=false配置一下看看
   > 
   > 如果dubbo服务是单纯的消费服务,通过dubbo.registry.register=false 可以不向nacos注册,但是dubbo的监控上面对应的服务消费者也就没有了;
   
   dubbo的监控使用的就是这个 consumer 节点的信息


-- 
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] wangshuaipei commented on issue #10721: dubbo的consumer作为服务注册到nacos

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

   > `dubbo.application.registerConsumer=false`
   
   我当前的dubbo版本(2.5.9)没有这个属性,我升级了一下dubbo的版本(2.7.17),尝试了一下这个属性,可以不向nacos注册,但是dubbo的监控上面对应的服务消费者也就没有了


-- 
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] yuchu01 commented on issue #10721: dubbo的consumer作为服务注册到nacos

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

   你用的什么版本,我用的3.1.1是不注册consumer的。


-- 
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] ningboliu commented on issue #10721: dubbo的consumer作为服务注册到nacos

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

   > 我的dubbo版本是2.5.9,2.X的好像都是会注册consumer的吧,有什么方法可以不注册吗?
   
   dubbo.registry=false配置一下看看


-- 
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] AlbumenJ commented on issue #10721: dubbo的consumer作为服务注册到nacos

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

   `dubbo.application.registerConsumer=false`


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