Nuno Santos created OAK-12418:
---------------------------------

             Summary: Log segment compaction node rate
                 Key: OAK-12418
                 URL: https://issues.apache.org/jira/browse/OAK-12418
             Project: Jackrabbit Oak
          Issue Type: Improvement
            Reporter: Nuno Santos


{{GCNodeWriteMonitor#onNode()}} currently logs cumulative counts and elapsed 
time in milliseconds every {{gcProgressLog}} nodes, but does not report a 
compaction rate, making it hard to tell from the logs alone whether compaction 
is speeding up, slowing down, or stalled.

Track the time and node count as of the last progress log message, and log both 
the overall nodes/second rate since compaction started and the interval 
nodes/second rate since the last log message, using {{TimeDurationFormatter}} 
for human-readable durations instead of raw millisecond counts. Also add a 
summary log line to {{finished()}} (guarded so it only logs once) reporting the 
overall rate for the completed compaction cycle.

Purely additive to the existing log message content — no behavioral change to 
compaction itself.



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

Reply via email to