mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Added timeout goroutine to stop waiting on lock after timeout expiration. This necessitated reworking the flow of the acquire handler. createNode now _only_ creates the node; it no longer waits on the lock itself. getLockIndex (perhaps this is poorly named) extracts out the lock checking routine so that it can be used by "get" and "watch", both. get() was added to instantaneously attempt to acquire a lock with no waiting. If a lock fails to acquire, for whatever reason, an error is returned, resulting in a code 500 to the client.
Etcd modules
etcd modules (mods) are higher order pieces of functionality that only
speak to the client etcd API and are presented in the /mod HTTP path
of the etcd service.
The basic idea is that etcd can ship things like dashboards, master election APIs and other helpful services that would normally have to stand up and talk to an etcd cluster directly in the binary. It is a convienence and hopefully eases complexity in deployments.