Class EnforceMinimalIncreaseRescalingController
- java.lang.Object
-
- org.apache.flink.runtime.scheduler.adaptive.scalingpolicy.EnforceMinimalIncreaseRescalingController
-
- All Implemented Interfaces:
RescalingController
public class EnforceMinimalIncreaseRescalingController extends Object implements RescalingController
Simple scaling policy. The user can configure a minimum cumulative parallelism increase to allow a scale up.
-
-
Constructor Summary
Constructors Constructor Description EnforceMinimalIncreaseRescalingController(org.apache.flink.configuration.Configuration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanshouldRescale(VertexParallelism currentParallelism, VertexParallelism newParallelism)This method gets called whenever new resources orresource requirementsare available and the scheduler needs to design whether to rescale or not.
-
-
-
Method Detail
-
shouldRescale
public boolean shouldRescale(VertexParallelism currentParallelism, VertexParallelism newParallelism)
Description copied from interface:RescalingControllerThis method gets called whenever new resources orresource requirementsare available and the scheduler needs to design whether to rescale or not.- Specified by:
shouldRescalein interfaceRescalingController- 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.
-
-