Class DefaultSlotAssigner
- java.lang.Object
-
- org.apache.flink.runtime.scheduler.adaptive.allocator.DefaultSlotAssigner
-
- All Implemented Interfaces:
SlotAssigner
public class DefaultSlotAssigner extends Object implements SlotAssigner
SimpleSlotAssignerthat treats all slots and slot sharing groups equally. Specifically, when the cluster is deployed in application mode and theJobManagerOptions.SCHEDULER_PREFER_MINIMAL_TASKMANAGERS_ENABLEDis enabled, execution slot sharing groups are preferentially assigned to the minimal number of task managers.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<JobSchedulingPlan.SlotAssignment>assignSlots(JobInformation jobInformation, Collection<? extends SlotInfo> freeSlots, VertexParallelism vertexParallelism, JobAllocationsInformation previousAllocations)
-
-
-
Method Detail
-
assignSlots
public Collection<JobSchedulingPlan.SlotAssignment> assignSlots(JobInformation jobInformation, Collection<? extends SlotInfo> freeSlots, VertexParallelism vertexParallelism, JobAllocationsInformation previousAllocations)
- Specified by:
assignSlotsin interfaceSlotAssigner
-
-