Ivan Andika created RATIS-2156:
----------------------------------

             Summary: Notify follower slowness based on the log index
                 Key: RATIS-2156
                 URL: https://issues.apache.org/jira/browse/RATIS-2156
             Project: Ratis
          Issue Type: Improvement
            Reporter: Ivan Andika
            Assignee: Ivan Andika


Currently the StateMachine.LeaderEventApi#notifyFollowerSlowness is based on 
raft.server.rpc.slowness.timeout, we saw that sometimes there are some cases 
where the rpc rtt between the leader and follower does not exceed the timeout, 
the difference of the log index between the leader and follower keeps 
increasing, i.e. the slow follower cannot catch up.

In Ozone, this causes most watch request with ALL_COMMITTED replication to 
timeout, causing increased latency of writes. It is better to close the 
pipeline if the slow follower cannot catch up.



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

Reply via email to