ClusterSettings
Defined in: src/cluster/Cluster.ts:53
Properties
Section titled “Properties”downing?
Section titled “downing?”
readonlyoptionaldowning?:DowningProvider
Defined in: src/cluster/Cluster.ts:109
Optional split-brain resolver. When provided, the cluster invokes
provider.decide(view) whenever a member transitions to / from
unreachable, and force-downs every address in the returned set
(regardless of failure-detector state). Without a provider, the
cluster relies solely on the failure detector’s elapsed-time
unreachable → down → removed cascade — fine for unilateral
crashes, weak under network partitions.
See src/cluster/downing/ for the bundled strategies (KeepMajority,
KeepOldest, KeepReferee, StaticQuorum, LeaseMajority).
failureDetector?
Section titled “failureDetector?”
readonlyoptionalfailureDetector?:Partial<FailureDetectorSettings>
Defined in: src/cluster/Cluster.ts:61
Failure detector thresholds.
gossipIntervalMs?
Section titled “gossipIntervalMs?”
readonlyoptionalgossipIntervalMs?:number
Defined in: src/cluster/Cluster.ts:65
How often gossip is pushed to a random reachable peer.
readonlyhost:string
Defined in: src/cluster/Cluster.ts:54
readonlyport:number
Defined in: src/cluster/Cluster.ts:55
roles?
Section titled “roles?”
readonlyoptionalroles?:string[]
Defined in: src/cluster/Cluster.ts:59
Role tags exposed to other members — used to constrain sharding placement.
seedRetryIntervalMs?
Section titled “seedRetryIntervalMs?”
readonlyoptionalseedRetryIntervalMs?:number
Defined in: src/cluster/Cluster.ts:67
How often to resend the initial join gossip to seeds until self is Up.
seeds?
Section titled “seeds?”
readonlyoptionalseeds?:string[]
Defined in: src/cluster/Cluster.ts:57
Other nodes this node should try to contact on startup.
tombstoneMinRetentionMs?
Section titled “tombstoneMinRetentionMs?”
readonlyoptionaltombstoneMinRetentionMs?:number
Defined in: src/cluster/Cluster.ts:90
Minimum age before a tombstone is eligible for pruning, regardless
of tombstoneTtlMs. Defaults to 6 × downAfterMs, which
gives a few failure-detector rounds of breathing room so peers
that haven’t fully converged still see the tombstone before it
vanishes. Mostly relevant for tests that set a very low TTL.
tombstonePruneIntervalMs?
Section titled “tombstonePruneIntervalMs?”
readonlyoptionaltombstonePruneIntervalMs?:number
Defined in: src/cluster/Cluster.ts:82
How often the tombstone-prune pass runs. Default 5 min — small enough that a freshly-expired tombstone disappears within one pruning window, large enough to be negligible CPU.
tombstoneTtlMs?
Section titled “tombstoneTtlMs?”
readonlyoptionaltombstoneTtlMs?:number
Defined in: src/cluster/Cluster.ts:76
How long to keep a removed tombstone in the local members map
before pruning it. Tombstones exist so stale gossip from a slow
peer can’t resurrect a definitively-removed address; the TTL
caps their accumulation in long-running clusters with frequent
node churn (#75). Default 24 h — comfortably above any
realistic gossip-propagation lag.
transport?
Section titled “transport?”
readonlyoptionaltransport?:Transport
Defined in: src/cluster/Cluster.ts:63
Override the transport (e.g. InMemoryTransport for tests).
weaklyUpAfterMs?
Section titled “weaklyUpAfterMs?”
readonlyoptionalweaklyUpAfterMs?:number
Defined in: src/cluster/Cluster.ts:96
Auto-promote a joining member to weakly-up after this many ms if
convergence (leader + up transition) hasn’t happened yet. Set to 0
to disable. Default: 0 (disabled — opt-in only).