[ 
https://issues.apache.org/jira/browse/RATIS-2311?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18121790#comment-18121790
 ] 

Ivan Andika edited comment on RATIS-2311 at 10/2/26 3:22 AM:
-------------------------------------------------------------

Thanks [~elialovesgolang] for picking this up and [~szetszwo] for reviewing 
this.

This patch introduces appliedIndex in the RPC, maybe we can resolve RATIS-2246.


was (Author: JIRAUSER298977):
Thanks [~elialovesgolang] for picking this up and [~szetszwo] for reviewing 
this.

> 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: Elia Renzoni
>            Priority: Major
>             Fix For: 3.4.0
>
>          Time Spent: 1h 40m
>  Remaining Estimate: 0h
>
> 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