[ 
https://issues.apache.org/jira/browse/IGNITE-13327?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kirill Tkalenko updated IGNITE-13327:
-------------------------------------
    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

  was:
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.


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

Reply via email to