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
Metadata
Release files for phi-accrual-failure-detector 0.3.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| phi-accrual-failure-detector-0.3.3.tar.gz | 4.8 kB | Without provenance | Details for phi-accrual-failure-detector-0.3.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| phi_accrual_failure_detector-0.3.3-py3-none-any.whl | Python 3 | none | any | Details for phi_accrual_failure_detector-0.3.3-py3-none-any.whl |
Total release size: 11.6 kB
Release files / phi-accrual-failure-detector-0.3.3.tar.gz
| Download URL | phi-accrual-failure-detector-0.3.3.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7989cc2786260b03943b18f70b6d539fcd61b69afa497da7ce74e104323c4ff1
|
|
BLAKE2b-256 checksum How to use checksums |
e3b7c6597b95cae1ca86ef18ae77d16bf76a5685dbd51963a6bf48684ff8493a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.9.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
|
Release files / phi_accrual_failure_detector-0.3.3-py3-none-any.whl
| Download URL | phi_accrual_failure_detector-0.3.3-py3-none-any.whl |
|---|---|
| Size | 6.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f7e1bfe0ef4452a6e410ecb150eb8d5cece91c59fd880a259e955fe06a24b92a
|
|
BLAKE2b-256 checksum How to use checksums |
aff979bbf750600da8155dd8da3e8d4fc807f93f6fc5db98a4bb22eee0437ff9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.9.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
|
Security for phi-accrual-failure-detector 0.3.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.