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

service instance disconnected #12037

Open
yangwei980131 opened this issue Apr 28, 2024 · 5 comments
Open

service instance disconnected #12037

yangwei980131 opened this issue Apr 28, 2024 · 5 comments

Comments

@yangwei980131
Copy link

yangwei980131 commented Apr 28, 2024

Uploading 1f4cccf1d343aae9f1cab6fb34f11bc.png…
Describe the bug

The springcloudalibaba service disconnected after successful registration, but the service instance status is normal. And there is no relevant information in the Nacos log

Expected behavior
The service instance is started and successfully registered with Nacos, and the health status is always normal

Actually behavior
The service instance was started and successfully registered with Nacos. After about 10 seconds, the health status of the service was displayed as an issue on the Nacos client, but there were no abnormalities in the actual service. Additionally, there were services on the same server with normal health status and no disconnected services

@yangwei980131
Copy link
Author

1f4cccf1d343aae9f1cab6fb34f11bc
196ea555d1200a79ea89f022e8deb66
abebf5110561df5c4b4ea80c007bdbd
f6aa5af3fdac37aeabb055e306aab93
fae85e9e4678b019bd04462a2f7355f

@KomachiSion
Copy link
Collaborator

  1. If you register ephemeral instance, you should check your app is running well and no resource problem(such as CPU, FullGC, network problem) so that the heart beat can send to nacos server to keepalive.
  2. if you register persistent instance, you should check your configured health check policy is right, such as the port, the protocol. What's more, you should make sure your network is well which from nacos server to your app, you can run telnet ${your_app_ip} ${your_app_health_check_port} command to check the network whether well.

@yangwei980131
Copy link
Author

1.The second image is an image using the telnet command
2.In the third image, it can be seen that an instance is always in a normal state, and the excluded instances are all removed at a fixed time after being connected. Is there a version conflict that could cause this phenomenon

@KomachiSion
Copy link
Collaborator

I see, It should be your app only register instance, but not send heartbeat to keepalive, so nacos server think your instance has exception and need removed.

@KomachiSion
Copy link
Collaborator

You should check your app and find out why your app don't send heartbeat to server.

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