sarvekshayr opened a new pull request, #9339: URL: https://github.com/apache/ozone/pull/9339
## What changes were proposed in this pull request? Added a new metric to track the number of read only datanodes. A DN is considered read only if it cannot allocate space for new containers: - no data volume has free space > containerSize, or - the metadata volume has free space < blockSize. In this state, the DN can still serve read requests but cannot handle new writes. ## What is the link to the Apache JIRA [HDDS-13969](https://issues.apache.org/jira/browse/HDDS-13969) ## How was this patch tested? Tested in `TestSCMNodeMetrics`. JMX ``` { "name" : "Hadoop:service=StorageContainerManager,name=SCMNodeMetrics", "modelerType" : "SCMNodeMetrics", "tag.Context" : "ozone", "tag.Hostname" : "9941c5e28af3", "InServiceHealthyNodes" : 3, "AllNodes" : 3, "ReadOnlyNodes" : 0, ... } ``` -- 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]
