1. If the leader comes back online before the election timeout is exhausted on the followers then it continues as the leader. Peradventure, the heartbeat was delayed by network disruption not necessarily that the leader crashed.
2. If it comes back online when the followers have elected a new leader, it joins as a follower.
3. Or if the restarted node cannot join on the leader election provided that the followers make up a majority of the cluster and after the election it joins as follower
When a leader node in a Raft cluster restarts, does it retain its leadership role upon rejoining the cluster? Specifically, if the leader comes back online before the followers' election timeouts expire, does it continue as the leader without triggering a new election? Or does the restarting node become a follower and participate in a new election process according to the Raft protocol?Thank you in advance
--