LeaseMajorityOptionsType
LeaseMajorityOptionsType =
object
Defined in: src/cluster/downing/LeaseMajorityOptions.ts:6
Plain options-object shape accepted by LeaseMajority.
Properties
Section titled “Properties”acquireTimeoutMs?
Section titled “acquireTimeoutMs?”
readonlyoptionalacquireTimeoutMs?:number
Defined in: src/cluster/downing/LeaseMajorityOptions.ts:20
Hard ceiling on a single acquire() attempt. After this we
return no decision and let the next failure-detection tick
trigger a fresh attempt. Default: 5 s.
readonlylease:Lease
Defined in: src/cluster/downing/LeaseMajorityOptions.ts:14
External arbiter — typically a KubernetesLease so both sides
of a partition reach the same K8s API and only one acquires.
Each replica owns its own Lease instance with a distinct
owner (its node address); the underlying lease record is
shared (same name).
readonlyoptionalrole?:string
Defined in: src/cluster/downing/LeaseMajorityOptions.ts:22
If set, only members carrying this role count toward the majority.
