public Map<Integer, Integer> balance(
      final int parallelCount,
      final PipeStaticMeta pipeStaticMeta,
      final ConfigManager configManager) {
    return strategy.balance(parallelCount, pipeStaticMeta, configManager);
  }
Balances the given number of parallel tasks across available nodes.

@param parallelCount number of external source tasks to distribute
@param pipeStaticMeta metadata about the pipe extractor
@param configManager reference to ConfigManager for cluster information
@return a mapping from task index to leader node id
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/procedure/impl/pipe/util/PipeExternalSourceLoadBalancer.java