-
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
Renew lease #8719
Labels
Comments
keepalive is a blocking call. probably you want something like |
Yes, that would work. It is not there yet, right? |
@marcovc no it is not. would like to help to add the feature? |
Sure, I'll do it. Thanks |
marcovc
added a commit
to marcovc/etcd
that referenced
this issue
Oct 26, 2017
@marcovc thanks for the contribution. and go is really easy to get started :P |
Thank you for all the work. This was a simple one 😊 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is a question, not a bug.
I have the following workflow (in pseudo code):
The idea is to have a key in the etcd2 meaning that a periodic test succeeds. The ttl exists to ensure that if the program is interrupted the key is cleared.
My ttl is small (like 5 seconds), meaning that I'm creating a new lease every 5 seconds. This seems to be hurting the etcd2 cluster performance, so I'm guessing this is not the intended use of leases.
What I would like to do is more like:
But I can't find a command for renewing the lease. Also, I'm aware of the keepalive command, but I don't know how to use that with a test.
Can anyone point me in the right direction please?
Thanks!
Marco
The text was updated successfully, but these errors were encountered: