anuragp010 opened a new pull request, #11298: URL: https://github.com/apache/ozone/pull/11298
## What changes were proposed in this pull request? Per Node stats in `SCMNodeStats` and `SCMNodeMetric` are currently aggregates across all storage types. This has 3 consequences: 1. Placement policies can't rank datanodes based on a given `StorageType`. 2. Per `StorageType` metrics are not available. 3. `ContainerBalancer` can't become `StorageType` aware. This PR makes `NodeStat` `StorageType` aware: each metric is now tracked per `StorageType` alongside the existing aggregate totals. This allows for querying stats per `StorageType` or the aggregates. ## What is the link to the Apache JIRA [HDDS-16499](https://issues.apache.org/jira/browse/HDDS-16499) ## How was this patch tested? 1. Unit Tests - Existing and Newly added. Generated-with: Claude Code -- 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]
