-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
server endpoint to know sync state #4099
Comments
There is a metrics in kafka called syncLag to determine the rough sync lag duration between follower and leader. We probably can do similar things for etcd. |
So one thing I was wondering. when a node joins the cluster is it able to be used by clients before it finishes its initial sync? |
It is. But we should probably disable it? See #3879 |
ok, then perhaps as part of that have an endpoint (perhaps /ready) that returns if its ready to be used? |
Now, endpoint status is exposed. User can do endpoint status to check the raft syncing status. |
Currently the restore procedure tells users to do
and it sleep to allow the client time to sync, but the note later says to wait until the sync is done and might vary.
could be good to have a etcdctl command that can return the sync status and just loop on that until its ready and then proceed to the next machine.
The text was updated successfully, but these errors were encountered: