Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nacos registryHelthIndicator compatible graceful scenes microservice health check #1276

Closed
chengyouling opened this issue May 24, 2024 · 0 comments

Comments

@chengyouling
Copy link
Collaborator

优雅上线检查actuator/health返回状态触发服务注册场景存在问题:
1、SDK基于Nacos实现优雅上线逻辑为:服务关闭自动注册启动=》通过脚本不断调用服务actuator/health确认服务是否就绪=》服务状态为UP时,触发服务注册;
2、SDK中为配合readlines健康检查,实现了注册的健康检查NacosRegistryHelthIndicator,如果微服务未注册,那么返回状态为DOWN。

以上两个逻辑存在冲突

改进:在微服务未注册时,默认返回health为UP状态

@chengyouling chengyouling self-assigned this May 24, 2024
chengyouling added a commit to chengyouling/spring-cloud-huawei that referenced this issue May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant