public class DefaultSlotAssigner extends Object implements SlotAssigner
SlotAssigner that treats all slots and slot sharing groups equally. Specifically,
when the cluster is deployed in application mode and the JobManagerOptions.SCHEDULER_PREFER_MINIMAL_TASKMANAGERS_ENABLED
is enabled, execution slot sharing groups are preferentially assigned to the minimal number of
task managers.| Modifier and Type | Method and Description |
|---|---|
Collection<JobSchedulingPlan.SlotAssignment> |
assignSlots(JobInformation jobInformation,
Collection<? extends SlotInfo> freeSlots,
VertexParallelism vertexParallelism,
JobAllocationsInformation previousAllocations) |
public Collection<JobSchedulingPlan.SlotAssignment> assignSlots(JobInformation jobInformation, Collection<? extends SlotInfo> freeSlots, VertexParallelism vertexParallelism, JobAllocationsInformation previousAllocations)
assignSlots in interface SlotAssignerCopyright © 2014–2025 The Apache Software Foundation. All rights reserved.