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 to know when a server in the cluster is shutdown? #384

Open
alubahhh opened this issue Jan 19, 2024 · 1 comment
Open

How to know when a server in the cluster is shutdown? #384

alubahhh opened this issue Jan 19, 2024 · 1 comment

Comments

@alubahhh
Copy link

When a server in the cluster is shut down, other servers can receive notifications and handle other operations.

@bruce1125
Copy link
Contributor

case clientv3.EventTypeDelete:
sd.deleteServer(svID)
logger.Log.Debugf("server %s deleted by watcher", svID)
sd.printServers()

There isn't any public api can do it now, if you actually want, you could implement by yourself according the code above.

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