[ 
https://issues.apache.org/jira/browse/IGNITE-14175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17289924#comment-17289924
 ] 

Vyacheslav Koptilin commented on IGNITE-14175:
----------------------------------------------

Hello [[email protected]],

Thanks for your contribution. Merged to master branch.

> Update metric for loaded keys through rebalance once at the demand message
> --------------------------------------------------------------------------
>
>                 Key: IGNITE-14175
>                 URL: https://issues.apache.org/jira/browse/IGNITE-14175
>             Project: Ignite
>          Issue Type: Improvement
>          Components: cache
>            Reporter: Kirill Tkalenko
>            Assignee: Kirill Tkalenko
>            Priority: Major
>             Fix For: 2.11
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> We are consuming more than half of all rebalance time to updating metrics, 
> even if the statistic does not enable in the cache. 
> The problem is here:
> {code:java}
> //TODO: IGNITE-11330: Update metrics for touched cache only.
> for (GridCacheContext ctx : grp.caches()) {
>     if (ctx.statisticsEnabled())
>         ctx.cache().metrics0().onRebalanceKeyReceived();
> }
> {code}
> It needs to update once for one demand message and only if the statistic 
> enabled on the cache.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to