Skip to content

Comments

Improve locks#116

Open
jswarren4 wants to merge 16 commits intomasterfrom
locks
Open

Improve locks#116
jswarren4 wants to merge 16 commits intomasterfrom
locks

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.

1 participant