Lock-delay
Lock-delay postpones reacquisition of a lock after its holder or associated session is invalidated.
The delay is a coordination safeguard, not a storage-side rejection of old requests. A 2006 lock-service design applies it after holder failure or loss of contact, while normal release permits immediate reacquisition. Its one-minute cap limits unavailability rather than delayed-I/O lifetime. [1]
In Consul, TTL-based expiry has a lower bound; critical health check or explicit destruction can invalidate the session earlier. Lock-delay begins after invalidation. ACL-authorized clients can still perform ordinary KV writes without owning the lock: the delay restricts reacquisition, not all modifications. External storage needs its own enforcement. [2]
Relations
- related
- Fencing token, I/O fencing
Citations
- Mike Burrows. The Chubby lock service for loosely-coupled distributed systems. OSDI 2006, section 2.4.
- HashiCorp Consul: Sessions and distributed locks overview, Session Design and K/V Integration.
- HashiCorp Consul: Session HTTP API, Create Session, LockDelay field.