Class PhiAccrualDetector
java.lang.Object
org.apache.iotdb.confignode.manager.load.cache.detector.PhiAccrualDetector
- All Implemented Interfaces:
IFailureDetector
The Phi Failure Detector, proposed by Hayashibara, Naohiro, et al. "The/spl phi/accrual failure
detector.". It is an accrual approach based on heartbeat history analysis with dynamic
sensitivity and tunable threshold. It is adaptive with early failure detection, increased
accuracy and improved system stability.
Initially, Phi has a cold start period where it will only collect heartbeat samples and
fallback decision-making to FixedDetector. After collecting enough samples, it will start
failure detection using the Phi algo.
-
Field Summary
Fields inherited from interface org.apache.iotdb.confignode.manager.load.cache.IFailureDetector
FIXED_DETECTOR, PHI_ACCRUAL_DETECTOR -
Constructor Summary
ConstructorsConstructorDescriptionPhiAccrualDetector(long threshold, long acceptableHeartbeatPauseNs, long minHeartbeatStdNs, int minimalSampleCount, IFailureDetector fallbackDuringColdStart) -
Method Summary
Modifier and TypeMethodDescriptionbooleanisAvailable(List<AbstractHeartbeatSample> history) Given the heartbeat history, decide whether this endpoint is still available
-
Constructor Details
-
PhiAccrualDetector
public PhiAccrualDetector(long threshold, long acceptableHeartbeatPauseNs, long minHeartbeatStdNs, int minimalSampleCount, IFailureDetector fallbackDuringColdStart)
-
-
Method Details
-
isAvailable
Description copied from interface:IFailureDetectorGiven the heartbeat history, decide whether this endpoint is still available- Specified by:
isAvailablein interfaceIFailureDetector- Parameters:
history- heartbeat history- Returns:
- false if the endpoint is under failure
-