Comment Comment by winsletts The code relies on functionality in etcd to prevent a race condition. Using `prevExist=false` on acquiring the leader key, the set will fail if another node wins the race.The functionality in the code is here: https://github.com/compose/governor/blob/master/helpers/etcd...The documentation for etcd is here: https://coreos.com/etcd/docs/latest/api.html#atomic-compare-... parent winsletts 11 years ago
The functionality in the code is here: https://github.com/compose/governor/blob/master/helpers/etcd...
The documentation for etcd is here: https://coreos.com/etcd/docs/latest/api.html#atomic-compare-...