-
Notifications
You must be signed in to change notification settings - Fork 1
Phi accrual failure detector
License
arosien/failure
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
A failure detector as described in "The Phi Accrual Failure Detector" (Hayashibara, et al., 2004). Example: import asr.failure.FailureDetector; final FailureDetector detector = new FailureDetector(windowSize, minSamples); new Thread(new Runnable() { public void run() { while (doingStuff) { detector.recordHeartbeat(System.currentTimeMillis()); } } ).start(); while (doingOtherStuff) { Double phi = detector.phi(System.currentTimeMillis()); if (phi != null && phi > threshold) { // failure! } }
About
Phi accrual failure detector
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published