public double getAverageLoad() {
    if (this.assignmentManager == null) {
      return 0;
    }

    RegionStates regionStates = this.assignmentManager.getRegionStates();
    if (regionStates == null) {
      return 0;
    }
    return regionStates.getAverageLoad();
  }
Compute the average load across all region servers. Currently, this uses a very naive
computation - just uses the number of regions being served, ignoring stats about number of
requests.
@return the average load
hbase-server/src/main/java/org/apache/hadoop/hbase/master/HMaster.java