A port of the Akka's (φ) Accrual failure detector implementation
Project description
phi-accrual-failure-detector
A python port of the Akka's (φ) Accrual failure detector implementation .
A in-depth description is available here.
Getting started
You can import the library into the project using:
pip install py-accrual-failure-detector
You can use the package as follows:
from phi_accrual_failure_detector import PhiAccrualFailureDetector
failure_detector = PhiAccrualFailureDetector(
threshold=3,
max_sample_size=1000,
min_std_deviation_ms=10,
acceptable_heartbeat_pause_ms=0,
first_heartbeat_estimate_ms=1000
)
failure_detector.heartbeat() # sends an heartbeat
failure_detector.heartbeat() # sends an heartbeat
failure_detector.heartbeat() # sends an heartbeat
node_is_available = failure_detector.is_available()
References
The ϕ Accrual Failure Detector - Naohiro Hayashibara, Xavier Défago, Rami Yared and Takuya Katayama
Cassandra - A Decentralized Structured Storage System
Phi Accrual Failure Detector - Akka documentation
A logistic approximation to the cumulative normal distribution
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for phi-accrual-failure-detector-0.3.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7989cc2786260b03943b18f70b6d539fcd61b69afa497da7ce74e104323c4ff1 |
|
MD5 | 8d7ea85b01f9637dfbb9817fc4350a35 |
|
BLAKE2b-256 | e3b7c6597b95cae1ca86ef18ae77d16bf76a5685dbd51963a6bf48684ff8493a |
Close
Hashes for phi_accrual_failure_detector-0.3.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7e1bfe0ef4452a6e410ecb150eb8d5cece91c59fd880a259e955fe06a24b92a |
|
MD5 | 603226501a7836d013982cea6a162ee1 |
|
BLAKE2b-256 | aff979bbf750600da8155dd8da3e8d4fc807f93f6fc5db98a4bb22eee0437ff9 |