News for hackers. Stuff that matters.
Re:How to do distributed locking by takeda on Monday February 08, 2016 @05:10PM (#11061240)
Doesn't it have the same issue that redis does?
Re:How to do distributed locking by harlowja on Tuesday February 09, 2016 @01:48AM (#11063586)
Nope, zookeeper nodes have ids that always increment and can be used for fencing, compare-and-set and more...
Re:How to do distributed locking by takeda on Tuesday February 09, 2016 @01:29PM (#11067499)
I was talking about consul and etcd.
Re:How to do distributed locking by syscomet on Wednesday February 10, 2016 @01:38AM (#11071099)
In the linked consul documentation, we see a `LockIndex` field in the lock state; https://www.consul.io/docs/agent/http/kv.html confirms that "LockIndex is the number of times this key has successfully been acquired in a lock. If the lock is held, the Session key provides the session that owns the lock."

So you can do fencing with consul.

Re:How to do distributed locking by syscomet on Wednesday February 10, 2016 @01:41AM (#11071112)
For etcd: https://coreos.com/etcd/docs/0.4.7/etcd-api/

node.modifiedIndex appears sensible for fencing.