You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "luger1990 (via GitHub)" <gi...@apache.org> on 2024/01/16 11:00:04 UTC
[I] 如何手动从注册中心移除当前节点 [dubbo]
luger1990 opened a new issue, #13668:
URL: https://github.com/apache/dubbo/issues/13668
我是通过instance注册到nacos注册中心的。dubbo提供了方法ApplicationModel.defaultModel().destroy();来实现优雅停机,我如果仅仅想把当前实例从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.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 "liudaac (via GitHub)" <gi...@apache.org>.
liudaac commented on issue #13668:
URL: https://github.com/apache/dubbo/issues/13668#issuecomment-1893548846
可以参考 https://github.com/liudaac/aradin/blob/main/aradin-spring/aradin-spring-actuator-starter/src/main/java/cn/aradin/spring/actuator/starter/actuate/OfflineEndpoint.java performDeregistry的实现
--
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 "luger1990 (via GitHub)" <gi...@apache.org>.
luger1990 closed issue #13668: 如何手动从注册中心移除当前节点
URL: https://github.com/apache/dubbo/issues/13668
--
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 "luger1990 (via GitHub)" <gi...@apache.org>.
luger1990 commented on issue #13668:
URL: https://github.com/apache/dubbo/issues/13668#issuecomment-1894894607
> 可以参考 https://github.com/liudaac/aradin/blob/main/aradin-spring/aradin-spring-actuator-starter/src/main/java/cn/aradin/spring/actuator/starter/actuate/OfflineEndpoint.java performDeregistry的实现
牛逼 可以了,附上代码
```
ApplicationModel applicationModel = ApplicationModel.defaultModel();
ServiceInstanceMetadataUtils.unregisterMetadataAndInstance(applicationModel);
```
--
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