devmadhuu opened a new pull request, #11866: URL: https://github.com/apache/ozone/pull/11866
## What changes were proposed in this pull request? Overall datanode usage can hide storage-type imbalance. For example, two datanodes can both appear 50% full while one has nearly full SSD storage and the other has nearly empty SSD storage. This PR extends the existing containerbalancer assessment and estimate commands to use separate usage figures for SSD, DISK, and other storage types. The changes: - Add a storage-type usage breakdown to SCM’s existing datanode usage response. - Show separate storage-type sections in assessment text and JSON output. - Calculate estimates using compatible sources and targets for each storage type, with limits shared across types. - Warn when assessment information is incomplete and reject estimates based on incomplete information. - Retain the existing overall calculation when no storage-type breakdown is available. The running balancer continues choosing moves using overall datanode usage. Per-storage-type move selection is separate work under HDDS-16653. ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-17584 ## How was this patch tested? Extended existing Junit tests: TestContainerBalancerClusterAnalyzer, TestContainerBalancerAdvisor, TestDatanodeUsageInfo, TestContainerBalancerTask, TestContainerBalancerAssessmentSubcommand, TestContainerBalancerSubCommand. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
