Skip to main content

phi-accrual-failure-detector

Pipeline codecov

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

akka/akka source code

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)

Source distribution for phi-accrual-failure-detector 0.3.3
File Size Uploaded
phi-accrual-failure-detector-0.3.3.tar.gz 4.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for phi-accrual-failure-detector 0.3.3
File Interpreter ABI Platform
phi_accrual_failure_detector-0.3.3-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.3.3 This release

2 release files

0.3.1

2 release files

0.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page