-
Notifications
You must be signed in to change notification settings - Fork 9.9k
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
export EtcdServer.leaderChangedNotify function for application which using embed etcd to detect leader changes #12378
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 21 days if no further activity occurs. Thank you for your contributions. |
any thoughts please |
etcdserver: export method EtcdServer.leaderChangedNotify (#12378)
Sorry to ping such an old issue, but I have noticed that I was wondering if Im overlooking something here, and whether I should open a feature request to be able to get nice notifications when the embedded server has become disconnected/leaderless. Thanks! |
Now the only way to know etcd leader changes is to poll the EtcdServer.Lead for embed etcd and that isn't handy. So I wonder if there is possible to export the EtcdServer.leaderChangedNotify so that the application will be notified when etcd leader has changed. This way the application can easily move the application level leadership to follow etcd's, reduce the extra network overhead when the application level leader and the embed etcd leader aren't same.
The text was updated successfully, but these errors were encountered: