Consider a cluster with three nodes: NodeA, NodeB, and NodeC.
Initial State:
NodeA is aware of itself but knows nothing about NodeB and NodeC.Gossip Communication:
NodeA gossips its state to NodeB, and NodeB updates its local view.NodeB gossips to NodeC, propagating the updated state.Convergence:
You can configure gossip settings in the application.conf file :
akka {
cluster {
gossip-interval = 1s # Frequency of gossip messages
failure-detector {
threshold = 8.0 # Adjust failure detection sensitivity
heartbeat-interval = 1s # Frequency of heartbeat messages
}
}
}