A port of the Akka's (φ) Accrual failure detector implementation
Project description
phi-accrual-failure-detector
A port of the Akka's (φ) Accrual failure detector implementation.
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_millis=10,
acceptable_heartbeat_pause_millis=0,
first_heartbeat_estimate_millis=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
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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e83dfb91b13ab4b3f67a1096cea593bad7ca407cebcbb6e53071ed3f5ff473a7 |
|
MD5 | ac30bd5fa206d4928a069fdea40f818b |
|
BLAKE2b-256 | 1af70b27b905ded7ea5156a9992e1de44b205294bb89bfa23a778b2bb24c2e04 |
Close
Hashes for phi_accrual_failure_detector-0.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58cf3940a045ffc9189ebdddcd4d2e0fd0e12f6c1835d262d4da6971478353ee |
|
MD5 | c8263ce4b68acd8ae58cdc46893c538c |
|
BLAKE2b-256 | 8566ddf4b872776efad08a6a04d6fc9b96cbeb5f88cefda9eef31fa35efa6170 |