ignite-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [ignite] nizhikov commented on a change in pull request #6701: IGNITE-11961 Provide JMX metrics for PME timings
Date Mon, 29 Jul 2019 11:15:12 GMT
nizhikov commented on a change in pull request #6701: IGNITE-11961  Provide JMX metrics for
PME timings
URL: https://github.com/apache/ignite/pull/6701#discussion_r308176211
 
 

 ##########
 File path: modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCachePartitionExchangeManager.java
 ##########
 @@ -476,6 +489,19 @@ else if (m instanceof GridDhtPartitionDemandLegacyMessage) {
                 });
             }
         }
+
+        MetricRegistry mreg = cctx.kernalContext().metric().registry(PME_METRICS);
+
+        mreg.register(CURRENT_PME_DURATION,
+            () -> getCurrentPMEDuration(false),
+            "Current PME duration in milliseconds.");
+
+        mreg.register(CURRENT_PME_CACHE_OPERATIONS_BLOCKED_DURATION,
+            () -> getCurrentPMEDuration(true),
+            "Current PME cache cperations blocked duration in milliseconds.");
 
 Review comment:
   typo in `cperations`

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message