You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Vyacheslav Koptilin (Jira)" <ji...@apache.org> on 2025/08/18 11:00:02 UTC

[jira] [Updated] (IGNITE-25724) Add metrics related to unrebalanced partitions

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

Vyacheslav Koptilin updated IGNITE-25724:
-----------------------------------------
    Description: 
I would suggest adding the following two metrics to zone metrics:
 * LocalUnrebalancedPartitionsCount - number of partitions that should be rebalanced to this node.

 * TotalUnrebalancedPartitionsCount - total number of partitions that should be moved to a new owner.

 

I don't see any value in implementing these metrics for non-colocated clusters (see the colocation feature IGNITE-22115)

The calculation of these metrics can be based on the data provided by the metastorage:
 * zone.assignments.pending
 * zone.assignments.stable

totalUnrebalancedPartitionsCount = for each partition: if pending key is not empty for the partition, then +1
localUnrebalancedPartitionsCount = for each partition: if stable key does not contain the local node, but pending key does, then +1

||Metric Name||Description||
|localUnrebalancedPartitionsCount||

  was:
I would suggest adding the following two metrics to zone metrics:
 * LocalUnrebalancedPartitionsCount - number of partitions that should be rebalanced to this node.

 * TotalUnrebalancedPartitionsCount - total number of partitions that should be moved to a new owner.

 

I don't see any value in implementing these metrics for non-colocated clusters (see the colocation feature IGNITE-22115)

The calculation of these metrics can be based on the data provided by the metastorage:
 * zone.assignments.pending

 * zone.assignments.stable

totalUnrebalancedPartitionsCount = for each partition: if pending key is not empty for the partition, then +1
localUnrebalancedPartitionsCount = for each partition: if stable key does not contain the local node, but pending key does, then +1


> Add metrics related to unrebalanced partitions
> ----------------------------------------------
>
>                 Key: IGNITE-25724
>                 URL: https://issues.apache.org/jira/browse/IGNITE-25724
>             Project: Ignite
>          Issue Type: Improvement
>          Components: metrics ai3
>            Reporter: Vyacheslav Koptilin
>            Assignee: Vyacheslav Koptilin
>            Priority: Major
>              Labels: ignite-3
>             Fix For: 3.1
>
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> I would suggest adding the following two metrics to zone metrics:
>  * LocalUnrebalancedPartitionsCount - number of partitions that should be rebalanced to this node.
>  * TotalUnrebalancedPartitionsCount - total number of partitions that should be moved to a new owner.
>  
> I don't see any value in implementing these metrics for non-colocated clusters (see the colocation feature IGNITE-22115)
> The calculation of these metrics can be based on the data provided by the metastorage:
>  * zone.assignments.pending
>  * zone.assignments.stable
> totalUnrebalancedPartitionsCount = for each partition: if pending key is not empty for the partition, then +1
> localUnrebalancedPartitionsCount = for each partition: if stable key does not contain the local node, but pending key does, then +1
> ||Metric Name||Description||
> |localUnrebalancedPartitionsCount||



--
This message was sent by Atlassian Jira
(v8.20.10#820010)