Перейти к содержимому
Русский

FailureDetectorOptionsType

Это содержимое пока не доступно на вашем языке.

FailureDetectorOptionsType = object

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

Plain options-object shape accepted by a FailureDetector.

readonly downAfterMs: number

Defined in: src/cluster/FailureDetectorOptions.ts:17

Time without heartbeat after which a peer is declared down. Measured from the last heartbeat like unreachableAfterMs, not added on top of it — so it must be the larger of the two, and the peer spends downAfterMs - unreachableAfterMs in the unreachable state before being declared down.


readonly heartbeatIntervalMs: number

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

How often the detector samples and decides membership health.


readonly unreachableAfterMs: number

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

Time without heartbeat after which a peer is marked unreachable.