muskan1012 commented on code in PR #5745:
URL: https://github.com/apache/ozone/pull/5745#discussion_r1668461342


##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OMPerformanceMetrics.java:
##########
@@ -113,6 +113,11 @@ public static void unregister() {
   @Metric(about = "Ratis local command execution latency in nano seconds")
   private MutableRate validateAndUpdateCacneLatencyNs;
 
+  @Metric(about = "average pagination for listKeys")
+  private MutableRate listKeysAveragePagination;
+
+  @Metric(about = "ops per second for listKeys")
+  private MutableRate listKeysOpsPerSec;

Review Comment:
   I implemented the cumulative number of listKeys using keyCount, which is set 
to maxKeys if truncated or cacheKeyMap.size() otherwise.
   listKeysAveragePagination is set using keyCount.
   listKeysOpsPerSec is calculated as keyCount / ((Time.monotonicNowNanos() - 
startNanos) / 1_000_000_000.0f).
   Added latency tracking with addListKeysReadFromRocksDbLatencyNs.
   This approach captures the metrics as you suggested.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to