Dear Raft Community,
I have been studying the Raft consensus algorithm in depth and have encountered a subtle point regarding the behavior of a node when it stops receiving heartbeats. I would greatly appreciate your insights on the following scenario.
Background:
Consider a cluster of five nodes: A, B, C, D, and E. In Raft, a node relies on receiving regular heartbeat messages from the leader (or other nodes) to determine if the system is healthy.
Scenario 1 – Complete Cluster Failure:
Scenario 2 – Network Partition (Isolated Node E):
Since node E relies solely on the heartbeat mechanism to detect activity, in both scenarios E “sees” no heartbeat. How does the Raft algorithm differentiate between the situation where all other nodes are truly dead (Scenario 1) versus the situation where a network partition isolates E (Scenario 2)?
Thank you very much for your time and assistance in clarifying this matter. I look forward to your insights and any references or explanations you can provide.
My Question:Since node E relies solely on the heartbeat mechanism to detect activity, in both scenarios E “sees” no heartbeat. How does the Raft algorithm differentiate between the situation where all other nodes are truly dead (Scenario 1) versus the situation where a network partition isolates E (Scenario 2)?
Inline.On Fri, Feb 7, 2025 at 11:31 AM 'Rajib Ghosal' via raft-dev <raft...@googlegroups.com> wrote:My Question:Since node E relies solely on the heartbeat mechanism to detect activity, in both scenarios E “sees” no heartbeat. How does the Raft algorithm differentiate between the situation where all other nodes are truly dead (Scenario 1) versus the situation where a network partition isolates E (Scenario 2)?
IIUC it doesn't, nor does it need to. Both situations are identical as far as node E is concerned.
--
You received this message because you are subscribed to the Google Groups "raft-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to raft-dev+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/raft-dev/CAEajhJPSYq2p4%3DS9BtGKMMPoLavJ3F8WcxkxG1OOv%2BSCYXqfkA%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "raft-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to raft-dev+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/raft-dev/eba0883d-bfc4-4d15-8fda-ef45f252a124n%40googlegroups.com.