Zum Inhalt springen
Deutsch

LeaseMajorityOptionsType

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

LeaseMajorityOptionsType = object

Defined in: src/cluster/downing/LeaseMajorityOptions.ts:6

Plain options-object shape accepted by LeaseMajority.

readonly optional acquireTimeoutMs?: 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.


readonly lease: 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).


readonly optional role?: string

Defined in: src/cluster/downing/LeaseMajorityOptions.ts:22

If set, only members carrying this role count toward the majority.