Skip to content

Leases

A lease is a named TTL grant. Many names can be held at once. Grant never blocks.

Same Raft path as locks: leader writes, followers forward. Same name rules, TTL caps, table size (4096), and fencing token.

RPCs: Grant, Renew, Revoke, ListLeases.

SDK

Background renew until context cancel (Go), stop Event (Python), Revoke, or Close.

Cancelling the Go Lease context stops renew. The grant then expires. It does not revoke.

Presence

The daemon's own liveness lease is named presence.<nodeID>. That is presence, not an application lease, but it uses this table.

Observers still grant and renew leases (presence must work). They only reject locks.

Documentation is sourced from the clusdr/docs tree.