Skip to content
English

PhiAccrualOptionsType

PhiAccrualOptionsType = object

Defined in: src/cluster/PhiAccrualOptions.ts:5

Plain options-object shape accepted by a PhiAccrualFailureDetector.

readonly acceptableHeartbeatPauseMs: number

Defined in: src/cluster/PhiAccrualOptions.ts:20

Grace period added to the most recent heartbeat — heartbeats that arrive up to acceptableHeartbeatPauseMs late do not raise phi.


readonly downThreshold: number

Defined in: src/cluster/PhiAccrualOptions.ts:11

Phi value above which the peer is flagged down. Must be > unreachableThreshold.


readonly heartbeatIntervalMs: number

Defined in: src/cluster/PhiAccrualOptions.ts:7

Intended heartbeat cadence. Used to keep interval compatible with FailureDetector.


readonly maxSampleSize: number

Defined in: src/cluster/PhiAccrualOptions.ts:13

How many recent intervals to keep in the sliding window.


readonly minStdDeviationMs: number

Defined in: src/cluster/PhiAccrualOptions.ts:15

Minimum stddev floor — avoids over-eager flagging for very stable peers.


readonly unreachableThreshold: number

Defined in: src/cluster/PhiAccrualOptions.ts:9

Phi value above which the peer is flagged unreachable. Typical 8–12.