Vyacheslav Koptilin created IGNITE-25724:
--------------------------------------------
Summary: 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
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, when +1
localUnrebalancedPartitionsCount = for each partition: if pending or planned
key is not empty for the partition and this node is a data node for the
partition, when +1
--
This message was sent by Atlassian Jira
(v8.20.10#820010)