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

How can we ensure that the service node is Deregister wehn use zookeeper plugins #2649

Open
dingjianfeng opened this issue Jul 18, 2023 · 1 comment

Comments

@dingjianfeng
Copy link

When zookeeper plugins creates a node in the service registration discovery, the flag value is set 0, which means that the created node is a permanent path node. When the machine crashes or the kill 9 service process, how can we ensure that the service node is Deregister.

@jochumdev
Copy link
Member

The only solution for that I see is either make ZooKeeper check the service (TCP port check) or by adding a 3rd party service that deregister's services which aren't there anymore.

When you add a 3rd party service you need to make sure to protect against split-brain ofc.

I'm writing this rudumentary as I haven't found any Zookeeper docs on doing health checks.

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

No branches or pull requests

2 participants