How does failure detection work in Cassandra and what is the phi accrual failure detector?

Last updated 11 July 2026

  • The phi accrual failure detector outputs a continuous suspicion value (phi) instead of a binary up/down flag, based on the history of gossip heartbeat arrival times.

  • The more overdue a heartbeat is relative to normal, the higher phi climbs. Because it learns real network behavior, it tolerates slow or flaky networks without false alarms.

  • A node is marked down when phi exceeds phi_convict_threshold (default around 8). Higher values tolerate more latency.

  • https://cassandra.apache.org/doc/stable/cassandra/architecture/dynamo.html
  • https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/gms/FailureDetector.java
  • https://digitalis.io/post/understanding-phi-convict-threshold-in-apache-cassandra-a-deep-dive-into-failure-detection
  • https://docs.datastax.com/en/dse/6.9/managing/tools/nodetool/failure-detector.html
  • https://docs.datastax.com/en/cassandra-oss/2.2/cassandra/architecture/archDataDistributeFailDetect.html
  • https://scalewiki.co.uk/concepts/phi-accrual-failure-detector
  • https://rustycloud.org/distributed_systems_track/module-04-fault-tolerance/lesson-01-failure-detection.html
All Cassandra interview questions