public interface ResourceAllocationStrategy
| 限定符和类型 | 方法和说明 |
|---|---|
ResourceAllocationResult |
tryFulfillRequirements(Map<org.apache.flink.api.common.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<org.apache.flink.api.common.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–2022 The Apache Software Foundation. All rights reserved.