You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by GitBox <gi...@apache.org> on 2021/02/10 12:05:51 UTC

[GitHub] [ignite] tkalkirill commented on a change in pull request #8776: IGNITE-14143 Document metric for processed keys when rebuilding indexes.

tkalkirill commented on a change in pull request #8776:
URL: https://github.com/apache/ignite/pull/8776#discussion_r573670223



##########
File path: docs/_docs/monitoring-metrics/metrics.adoc
##########
@@ -308,6 +308,22 @@ group=<Cache Name>,name="org.apache.ignite.internal.processors.cache.CacheLocalM
 |===
 --
 
+=== Monitoring Processed Keys for Rebuilding Indexes
+
+To get an estimate on how long it takes to rebuild cache indexes, you can use one of the metrics listed below:
+
+. `IsIndexRebuildInProgress` - gives the number of currently rebuilding cache indexes
+. `IndexBuildCountPartitionsLeft` - gives the remaining number of partitions (by cache group) to rebuild indexes for

Review comment:
       The **for** at the end is superfluous.

##########
File path: docs/_docs/monitoring-metrics/metrics.adoc
##########
@@ -308,6 +308,22 @@ group=<Cache Name>,name="org.apache.ignite.internal.processors.cache.CacheLocalM
 |===
 --
 
+=== Monitoring Processed Keys for Rebuilding Indexes
+
+To get an estimate on how long it takes to rebuild cache indexes, you can use one of the metrics listed below:
+
+. `IsIndexRebuildInProgress` - gives the number of currently rebuilding cache indexes

Review comment:
       Whether indexes are being built or rebuilt right now.

##########
File path: docs/_docs/monitoring-metrics/metrics.adoc
##########
@@ -308,6 +308,22 @@ group=<Cache Name>,name="org.apache.ignite.internal.processors.cache.CacheLocalM
 |===
 --
 
+=== Monitoring Processed Keys for Rebuilding Indexes

Review comment:
       I would say: Monitoring build and rebuild indexes.

##########
File path: docs/_docs/monitoring-metrics/metrics.adoc
##########
@@ -308,6 +308,22 @@ group=<Cache Name>,name="org.apache.ignite.internal.processors.cache.CacheLocalM
 |===
 --
 
+=== Monitoring Processed Keys for Rebuilding Indexes
+
+To get an estimate on how long it takes to rebuild cache indexes, you can use one of the metrics listed below:
+
+. `IsIndexRebuildInProgress` - gives the number of currently rebuilding cache indexes
+. `IndexBuildCountPartitionsLeft` - gives the remaining number of partitions (by cache group) to rebuild indexes for
+
+These metrics allow to estimate an approximate number of indexes left to rebuild.
+For a more accurate estimate, use the `IndexRebuildKeyProcessed` cache metric:
+
+* Use `org.apache.ignite.mxbean.CacheMetricsMXBean#isIndexRebuildInProgress` to know whether the indexes are being rebuilt for the cache.
+Note that presently only the `org.apache.ignite.internal.processors.cache.CacheLocalMetricsMXBeanImpl#isIndexRebuildInProgress` local metric is available.
+
+* Use `org.apache.ignite.mxbean.CacheMetricsMXBean#getIndexRebuildKeysProcessed` to know the number of indexes that are rebuilt for the cache. If the rebuilding is in progress, it gives a number of indexes being rebuilt at the current moment. Otherwise, it gives a total number of the rebuilt indexes. The values are reset before the start of each rebuilding.

Review comment:
       Not the number of indexes, but the number of keys for which all their indexes have been rebuilt.

##########
File path: docs/_docs/monitoring-metrics/metrics.adoc
##########
@@ -308,6 +308,22 @@ group=<Cache Name>,name="org.apache.ignite.internal.processors.cache.CacheLocalM
 |===
 --
 
+=== Monitoring Processed Keys for Rebuilding Indexes
+
+To get an estimate on how long it takes to rebuild cache indexes, you can use one of the metrics listed below:
+
+. `IsIndexRebuildInProgress` - gives the number of currently rebuilding cache indexes
+. `IndexBuildCountPartitionsLeft` - gives the remaining number of partitions (by cache group) to rebuild indexes for
+
+These metrics allow to estimate an approximate number of indexes left to rebuild.

Review comment:
       It seems that it can only be said about the **IndexBuildCountPartitionsLeft** that it gives little information. And about the **IsIndexRebuildInProgress** just say below.




----------------------------------------------------------------
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