[ https://issues.apache.org/jira/browse/RATIS-647?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16919716#comment-16919716 ]
Supratim Deka commented on RATIS-647: ------------------------------------- The following metric which was listed in RATIS-650 appears to fit better in this set of metrics. The other metric in RATIS-650 tracks a raft group. While the metrics in this jira, like the one below, track the local raft log. |appliedIndexToCommitIndexDiff|The difference between lastApplied Index and log commit Index on each of Ratis server. This will give an indication of how the stateMachine is behaving with respect to the incoming load.| So I am moving it out of 650. Please include in the list of RATIS-647. If this doesn't appear right for some reason, please let me know. > Create metrics associated with RaftLog for RaftServer > ----------------------------------------------------- > > Key: RATIS-647 > URL: https://issues.apache.org/jira/browse/RATIS-647 > Project: Ratis > Issue Type: Sub-task > Components: server > Affects Versions: 0.4.0 > Reporter: Shashikant Banerjee > Assignee: Aravindan Vijayan > Priority: Major > Fix For: 0.4.0 > > > We need the following metrics related to RaftLog and RaftLogWorker: > |raftLogSyncLatency|Time taken to sync raft log| > |numRaftLogSyncOps|Number of Raft log sync calls with respect to time(equals > no of FlushStateMacine Calls)| > |raftLogSynBatchSize|No of raft log entries synced with each flush call| > |raftLogReadLatency|Time required to read a raft log entry from actual raft > log file and create a raft log entry (Raft log read latency)| > |raftLogAppendLatency|Total time taken to append a raft log entry (this also > includes writeStateMachineData which will vary depending upon the size of the > data to be written as well as external factors)| > |raftLogEnqueuedTime|Time of RaftLogEntry in the Raft Log Worker Queue| > |raftLogQueueingDelay|Time required to enqueue a raft Log entry in raft log > worker queue| > |raftLogSegmentLoadLatency|Time required to load and process raft log > segments during restart| > |raftLogWorkerQueueSize|Raft log worker queue size which at any time gives > the no of pending log entries to be committed to the raft log.| > |raftLogCacheMissCount|Number of RaftLogCacheMisses | -- This message was sent by Atlassian Jira (v8.3.2#803003)