rmdmattingly commented on code in PR #6596: URL: https://github.com/apache/hbase/pull/6596#discussion_r1912066461
########## hbase-hadoop-compat/src/main/java/org/apache/hadoop/hbase/regionserver/MetricsRegionServerSource.java: ########## @@ -314,10 +314,16 @@ public interface MetricsRegionServerSource extends BaseSource, JvmPauseMonitorSo "Size of data that has been sent by clients with the write ahead logging turned off."; String PERCENT_FILES_LOCAL = "percentFilesLocal"; String PERCENT_FILES_LOCAL_DESC = - "The percent of HFiles that are stored on the local hdfs data node."; + "The percent of HFiles that are stored on the local hdfs data node. If not using " + + "region replicas, this should equal percentFilesLocalPrimaryRegions"; + String PERCENT_FILES_LOCAL_PRIMARY_REGIONS = "percentFilesLocalPrimaryRegions"; + String PERCENT_FILES_LOCAL_PRIMARY_REGIONS_DESC = + "The percent of HFiles used by primary regions that are stored on the local hdfs data node. " + + "This is the category of locality that you want to reach 100% when using region replicas"; String PERCENT_FILES_LOCAL_SECONDARY_REGIONS = "percentFilesLocalSecondaryRegions"; String PERCENT_FILES_LOCAL_SECONDARY_REGIONS_DESC = - "The percent of HFiles used by secondary regions that are stored on the local hdfs data node."; + "The percent of HFiles used by secondary regions that are stored on the local hdfs data node. " + + "This is not likely to reach 100%"; Review Comment: The balancer is aware of locality — I wonder to what extent [LocalityBasedCandidateGenerator](https://github.com/apache/hbase/blob/9c8c9e7fbf8005ea89fa9b13d6d063b9f0240443/hbase-balancer/src/main/java/org/apache/hadoop/hbase/master/balancer/LocalityBasedCandidateGenerator.java#L25) could maintain secondary replica locality. I haven't looked at the implementation with replicas in mind, but I wonder if it already does balance secondary replicas based on locality -- 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: issues-unsubscr...@hbase.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org