Skip to content

Commit 17a93f1

Browse files
Nikita-tech-writerMmuzaf
authored andcommitted
IGNITE-14143 Document metric for processed keys when rebuilding indexes. (#8776)
1 parent e08c3b8 commit 17a93f1

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

docs/_docs/monitoring-metrics/metrics.adoc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,22 @@ group=<Cache Name>,name="org.apache.ignite.internal.processors.cache.CacheLocalM
328328
|===
329329
--
330330

331+
=== Monitoring Build and Rebuild Indexes
332+
333+
To get an estimate on how long it takes to rebuild cache indexes, you can use one of the metrics listed below:
334+
335+
. `IsIndexRebuildInProgress` - tells whether indexes are being built or rebuilt at the moment;
336+
. `IndexBuildCountPartitionsLeft` - gives the remaining number of partitions (by cache group) for indexes to rebuild.
337+
338+
Note that the `IndexBuildCountPartitionsLeft` metric allows to estimate only an approximate number of indexes left to rebuild.
339+
For a more accurate estimate, use the `IndexRebuildKeyProcessed` cache metric:
340+
341+
* Use `org.apache.ignite.mxbean.CacheMetricsMXBean#isIndexRebuildInProgress` to know whether the indexes are being rebuilt for the cache.
342+
Note that presently only the `org.apache.ignite.internal.processors.cache.CacheLocalMetricsMXBeanImpl#isIndexRebuildInProgress` local metric is available.
343+
344+
* Use `org.apache.ignite.mxbean.CacheMetricsMXBean#getIndexRebuildKeysProcessed` to know the number of keys with rebuilt indexes. If the rebuilding is in progress, it gives a number of keys with indexes being rebuilt at the current moment. Otherwise, it gives a total number of the of keys with rebuilt indexes. The values are reset before the start of each rebuilding.
345+
Note that presently only the `org.apache.ignite.internal.processors.cache.CacheLocalMetricsMXBeanImpl#getIndexRebuildKeysProcessed` local metric is available.
346+
331347
== Monitoring Transactions
332348
Note that if a transaction spans multiple nodes (i.e., if the keys that are changed as a result of the transaction execution are located on multiple nodes), the counters will increase on each node. For example, the 'TransactionsCommittedNumber' counter will increase on each node where the keys affected by the transaction are stored.
333349

0 commit comments

Comments
 (0)