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

Improve locks #116

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
Open

Improve locks #116

wants to merge 16 commits into from

Conversation

jswarren4
Copy link
Contributor

The following changes:

  1. Increase timeout for unlocking to one minute, up from 5 seconds
  2. Use new "TryLock" functionality that will fail if another client has the lock instead of waiting to obtain the lock until the context times out.
  3. Use one session to handle all locks instead of one session per lock as previously.
  4. Implement local locker to preempt calls to etcd for locally held locks and because "TryLock" locks are reentrant.

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

Successfully merging this pull request may close these issues.

None yet

1 participant