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注销微服务后,微服务无法重连注册到Nacos #12853

Open
weiweili666 opened this issue Nov 15, 2024 · 2 comments
Open

Comments

@weiweili666
Copy link

现象:多个长稳环境运行,有微服务出现了连不上Nacos的情况。查看Nacos的日志,有打印
WARN namespace: xxxxx, [xxxx@xxxxxx] services are automatically cleaned。服务本身进程是存在的,对应Nacos注销日志时间也没有发生重启。

版本:
nacos server 2.4.2
nacos client 2.4.1

@weiweili666
Copy link
Author

微服务是临时实例,springboot工程

@KomachiSion
Copy link
Collaborator

建议查看掉线服务的应用本身, 看下日志等信息, 为什么和nacos-server的链接断开了, nacos-client在未终止的情况下会尝试不停重连重新注册, 只有已经shutdown、应用自身注销了服务,或应用本身出现问题(FullGC OOM等)时候才会不进行重试注册。

如果其他服务都是正常的, 只有这个服务偶现,那么大概率和nacos没什么关系。

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

2 participants