[ 
https://issues.apache.org/jira/browse/RATIS-2311?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tsz-wo Sze reassigned RATIS-2311:
---------------------------------

    Assignee: Tsz-wo Sze

> Allow TransferLeadership#isFollowerUpToDate to wait for appliedIndex
> --------------------------------------------------------------------
>
>                 Key: RATIS-2311
>                 URL: https://issues.apache.org/jira/browse/RATIS-2311
>             Project: Ratis
>          Issue Type: Improvement
>          Components: Leader
>            Reporter: Ivan Andika
>            Assignee: Tsz-wo Sze
>            Priority: Major
>
> Currently TransferLeadership#isFollowerUpToDate only waits for the up-to-date 
> matchIndex before triggering election on the target Ratis server.
> However, if the target Ratis server appliedIndex is way below the matchIndex, 
> once the Ratis server is promoted to a leader, it might take a while for it 
> to catch up to the current appliedIndex and acknowlegding the requests. This 
> can have a noticeable effect on the latency and throughput of the Raft group.
> We might make the transfer leadership check to be more strict by ensuring 
> that leader and follower appliedIndex gap is within a certain acceptable 
> threshold (e.g 10,000) so that the leader catch up would be less noticeable.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to