[
https://issues.apache.org/jira/browse/IGNITE-13327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17174421#comment-17174421
]
Ivan Rakov commented on IGNITE-13327:
-------------------------------------
[[email protected]] I've shared my thoughts regarding the suggested
metric on the dev list.
> Add a metric for processed keys when rebuilding indexes.
> --------------------------------------------------------
>
> Key: IGNITE-13327
> URL: https://issues.apache.org/jira/browse/IGNITE-13327
> Project: Ignite
> Issue Type: Improvement
> Reporter: Kirill Tkalenko
> Assignee: Kirill Tkalenko
> Priority: Major
> Fix For: 2.10
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> 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
--
This message was sent by Atlassian Jira
(v8.3.4#803005)