public interface ResourceAllocationStrategy
Modifier and Type | Method and Description |
---|---|
ResourceAllocationResult |
tryFulfillRequirements(Map<JobID,Collection<ResourceRequirement>> missingResources,
org.apache.flink.runtime.resourcemanager.slotmanager.TaskManagerResourceInfoProvider taskManagerResourceInfoProvider,
BlockedTaskManagerChecker blockedTaskManagerChecker)
Try to make an allocation decision to fulfill the resource requirements.
|
ResourceAllocationResult tryFulfillRequirements(Map<JobID,Collection<ResourceRequirement>> missingResources, org.apache.flink.runtime.resourcemanager.slotmanager.TaskManagerResourceInfoProvider taskManagerResourceInfoProvider, BlockedTaskManagerChecker blockedTaskManagerChecker)
Notice: For performance considerations, modifications might be performed directly on the input arguments. If the arguments are reused elsewhere, please make a deep copy in advance.
missingResources
- resource requirements that are not yet fulfilled, indexed by jobIdtaskManagerResourceInfoProvider
- provide the registered/pending resources of the
current clusterblockedTaskManagerChecker
- blocked task manager checkerResourceAllocationResult
based on the current status, which contains
whether the requirements can be fulfilled and the actions to takeCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.