Ir al contenido
Español

PhiAccrualFailureDetector

Esta página aún no está disponible en tu idioma.

Defined in: src/cluster/PhiAccrualFailureDetector.ts:36

Phi-accrual failure detector (Hayashibara et al, “The Phi Accrual Failure Detector”, 2004). Tracks the distribution of recent inter-arrival times and produces a continuous suspicion value phi; the cluster converts phi to unreachable/down by threshold.

Compared to the simple time-threshold FailureDetector, this adapts to actual network conditions — a chatty LAN peer can be flagged sooner, a jittery mobile peer gets more slack.

new PhiAccrualFailureDetector(options?): PhiAccrualFailureDetector

Defined in: src/cluster/PhiAccrualFailureDetector.ts:40

PhiAccrualOptions = {}

PhiAccrualFailureDetector

get interval(): number

Defined in: src/cluster/PhiAccrualFailureDetector.ts:45

number

decide(peer, now?): FailureDecision

Defined in: src/cluster/PhiAccrualFailureDetector.ts:104

NodeAddress

number = ...

FailureDecision


forget(peer): void

Defined in: src/cluster/PhiAccrualFailureDetector.ts:111

NodeAddress

void


heartbeat(peer, now?): void

Defined in: src/cluster/PhiAccrualFailureDetector.ts:62

Record a received heartbeat for peer at time now.

NodeAddress

number = ...

void


lastSeen(peer): Option<number>

Defined in: src/cluster/PhiAccrualFailureDetector.ts:113

NodeAddress

Option<number>


phi(peer, now?): number

Defined in: src/cluster/PhiAccrualFailureDetector.ts:85

Current phi value for peer — the higher, the more suspicious.

NodeAddress

number = ...

number


register(peer, _now?): void

Defined in: src/cluster/PhiAccrualFailureDetector.ts:48

Peer is now known. No sample added until the first heartbeat.

NodeAddress

number = ...

void