managed/src/main/java/com/yugabyte/yw/common/PlacementInfoUtil.java
// Count number of active tserver-only nodes in the given AZ.
Count number of active tserver-only nodes in the given AZ.
Count number of active tserver - only nodes in the given AZ .
private static int findCountActiveTServerOnlyInAZ(Collection<NodeDetails> nodeDetailsSet,
                                                    UUID targetAZUuid) {
    int numActiveServers = 0;
    for (NodeDetails node : nodeDetailsSet) {
      if (node.isActive() && !node.isMaster && node.isTserver && node.azUuid.equals(targetAZUuid)) {
        numActiveServers ++;
      }
    }
    return numActiveServers;
  }
private static int findCountActiveTServerOnlyInAZ ( Collection < NodeDetails > nodeDetailsSet , UUID targetAZUuid ) { int numActiveServers = 0 ; for ( NodeDetails node : nodeDetailsSet ) { if ( node . isActive ( ) && ! node . isMaster && node . isTserver && node . azUuid . equals ( targetAZUuid ) ) { numActiveServers ++ ; } } return numActiveServers ; }
Count number of active tserver-only nodes in the given AZ.
Count number of active tserver - only nodes in the given AZ .