Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
Added cache metric for tracking progress of index rebuild
-
Docs Required, Release Notes Required
Description
It would be useful to understand how long it will take to rebuild indexes, since there can be a lot of data and indexes. Now there are following metrics that allow to estimate approximately how many indexes are left to rebuild:
- IsIndexRebuildInProgress - rebuilding cache indexes in the process;
- IndexBuildCountPartitionsLeft - remaining number of partitions (by cache group) to rebuild indexes for.
For a more accurate estimate, I suggest adding a metric for caches "Number of keys processed when rebuilding indexes" with the name "IndexRebuildKeyProcessed". This way we can estimate for cache how much index rebuilding will take. To do this, we can get "CacheSize" and use new metric to find out how many keys are left to process.
I also suggest adding methods:
- org.apache.ignite.cache.CacheMetrics#getIndexRebuildKeyProcessed
- org.apache.ignite.cache.CacheMetrics#IsIndexRebuildInProgress
Attachments
Issue Links
- relates to
-
IGNITE-14143 Document metric for processed keys when rebuilding indexes.
- Resolved
- links to