Skip to main content

A port of the Akka's (φ) Accrual failure detector implementation

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

phi-accrual-failure-detector-0.3.3.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file phi-accrual-failure-detector-0.3.3.tar.gz.

File metadata

  • Download URL: phi-accrual-failure-detector-0.3.3.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for phi-accrual-failure-detector-0.3.3.tar.gz
Algorithm Hash digest
SHA256 7989cc2786260b03943b18f70b6d539fcd61b69afa497da7ce74e104323c4ff1
MD5 8d7ea85b01f9637dfbb9817fc4350a35
BLAKE2b-256 e3b7c6597b95cae1ca86ef18ae77d16bf76a5685dbd51963a6bf48684ff8493a

See more details on using hashes here.

File details

Details for the file phi_accrual_failure_detector-0.3.3-py3-none-any.whl.

File metadata

  • Download URL: phi_accrual_failure_detector-0.3.3-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for phi_accrual_failure_detector-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f7e1bfe0ef4452a6e410ecb150eb8d5cece91c59fd880a259e955fe06a24b92a
MD5 603226501a7836d013982cea6a162ee1
BLAKE2b-256 aff979bbf750600da8155dd8da3e8d4fc807f93f6fc5db98a4bb22eee0437ff9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page