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

Use getAllServersBriefInfo method .Why can I still get the old service instance information? #2212

Open
zyz199221 opened this issue Apr 18, 2023 · 2 comments
Labels

Comments

@zyz199221
Copy link

Since each instance of a task needs to be registered once, we will use the getAllServersBriefInfo method to obtain all the service instances in the cluster. However, all the old service instances will be obtained every time. As a result, we often cannot register the task with other instances in our cluster. How can I solve it?

@TeslaCN
Copy link
Member

TeslaCN commented Apr 18, 2023

Server nodes are persist nodes. It won't be removed after ZooKeeper client disconnected.

@zyz199221
Copy link
Author

How can I ensure that all machines in the cluster are registered with the latest ip on zk? Because our service is inevitably need to restart, and each restart will be the history of all the registered ip information is obtained. Is there a way to solve this problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants