private int getMaxRegionsInTransition() {
    int numRegions = this.assignmentManager.getRegionStates().getRegionAssignments().size();
    return Math.max((int) Math.floor(numRegions * this.maxRitPercent), 1);
  }
Returns Maximum number of regions in transition
hbase-server/src/main/java/org/apache/hadoop/hbase/master/HMaster.java