You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ignite.apache.org by "Kirill Tkalenko (Jira)" <ji...@apache.org> on 2021/02/15 05:35:00 UTC

[jira] [Created] (IGNITE-14175) Update metric for loaded keys through rebalance once at the demand message

Kirill Tkalenko created IGNITE-14175:
----------------------------------------

             Summary: 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
             Fix For: 2.11


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)