You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by "Mukul Kumar Singh (JIRA)" <ji...@apache.org> on 2017/11/21 15:36:00 UTC

[jira] [Created] (RATIS-153) Add continuous heartbeats between Ratis servers to avoid unnecessary leader elections

Mukul Kumar Singh created RATIS-153:
---------------------------------------

             Summary: Add continuous heartbeats between Ratis servers to avoid unnecessary leader elections
                 Key: RATIS-153
                 URL: https://issues.apache.org/jira/browse/RATIS-153
             Project: Ratis
          Issue Type: Bug
            Reporter: Mukul Kumar Singh
            Assignee: Mukul Kumar Singh


Currently the heartbeat monitor on the follower is updated when the last rpc is received from the leader. When this threshold crosses the *raft.server.rpc.timeout*, an election is triggered to elect a new leader.

However generally it might happen that the leader doesn't had append entries to forward to the follower. This will trigger unnecessary leader elections.

This also causes the Raft Client to find the new Leader as well which can be time consuming.

This jira proposes to add a heartbeat mechanism, where the leader will periodically (lets say, raft.server.rpc.timeout/2) will send empty heartbeats to its followers to ensure that leader stays elected as the leader.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)