Class EnforceParallelismChangeRescalingController

  • All Implemented Interfaces:
    RescalingController

    public class EnforceParallelismChangeRescalingController
    extends Object
    implements RescalingController
    Simple scaling policy. It just checks that the new parallelism is different (either increase or decrease) from the current parallelism.
    • Constructor Detail

      • EnforceParallelismChangeRescalingController

        public EnforceParallelismChangeRescalingController()
    • Method Detail

      • shouldRescale

        public boolean shouldRescale​(VertexParallelism currentParallelism,
                                     VertexParallelism newParallelism)
        Description copied from interface: RescalingController
        This method gets called whenever new resources or resource requirements are available and the scheduler needs to design whether to rescale or not.
        Specified by:
        shouldRescale in interface RescalingController
        Parameters:
        currentParallelism - parallelism of the currently running job graph.
        newParallelism - Potential new parallelism with the additional resources.
        Returns:
        true if the policy decided to rescale based on the provided information.