Xinyu Tan created RATIS-1867:
--------------------------------

             Summary: To uniformly manage the timeout parameters for detecting 
gc
                 Key: RATIS-1867
                 URL: https://issues.apache.org/jira/browse/RATIS-1867
             Project: Ratis
          Issue Type: Improvement
            Reporter: Xinyu Tan
            Assignee: Xinyu Tan


In the current followerState 
[code|https://github.com/apache/ratis/blob/master/ratis-server/src/main/java/org/apache/ratis/server/impl/FollowerState.java#L129],
 if the follower's actual time consumption exceeds a certain threshold due to 
gc while sleeping, some exception logs will be printed. This 
sleepDeviationThreshold is currently configurable. However, in 
[JVMPauseMonitor|https://github.com/apache/ratis/blob/master/ratis-common/src/main/java/org/apache/ratis/util/JvmPauseMonitor.java#L
 122], this WARN_THRESHOLD is currently not configurable. 

If we want to print fewer logs in a severe GC scenario, just adjusting the 
sleepDeviationThreshold parameter will not reduce the frequency of logging by 
JVMPauseMonitor.

 So I would like to discuss whether the WARN_THRESHOLD of JVMPauseMonitor can 
also be reused with the sleepDeviationThreshold parameter? If not can we create 
a new parameter?



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

Reply via email to