Interface DynamicParallelismInference


  • @PublicEvolving
    public interface DynamicParallelismInference
    Sources that implement this interface will dynamically infer the source’s parallelism when it is unspecified. It will be invoked during the Flink runtime before the source vertex is scheduled.

    The implementations typically work together with the Source and are currently only effective for batch jobs that use the adaptive batch scheduler.

    • Method Detail

      • inferParallelism

        int inferParallelism​(DynamicParallelismInference.Context context)
        The method is invoked on the master (JobManager) before the initialization of the source vertex.
        Parameters:
        context - The context to get dynamic parallelism decision infos.