| Modifier and Type | Method and Description |
|---|---|
static ResourceProfile |
TaskExecutorProcessUtils.generateDefaultSlotResourceProfile(TaskExecutorProcessSpec taskExecutorProcessSpec,
int numberOfSlots) |
static ResourceProfile |
TaskExecutorProcessUtils.generateTotalAvailableResourceProfile(TaskExecutorProcessSpec taskExecutorProcessSpec) |
| Modifier and Type | Method and Description |
|---|---|
static List<ResourceProfile> |
TaskExecutorProcessUtils.createDefaultWorkerSlotProfiles(TaskExecutorProcessSpec taskExecutorProcessSpec,
int numberOfSlots) |
| Modifier and Type | Field and Description |
|---|---|
static ResourceProfile |
ResourceProfile.ANY
A ResourceProfile that indicates infinite resource that matches any resource requirement, for testability purpose only.
|
static ResourceProfile |
ResourceProfile.UNKNOWN
A ResourceProfile that indicates an unknown resource requirement.
|
static ResourceProfile |
ResourceProfile.ZERO
A ResourceProfile describing zero resources.
|
| Modifier and Type | Method and Description |
|---|---|
ResourceProfile |
ResourceProfile.Builder.build() |
static ResourceProfile |
ResourceProfile.fromResources(double cpuCores,
int taskHeapMemoryMB) |
static ResourceProfile |
ResourceProfile.fromResourceSpec(org.apache.flink.api.common.operators.ResourceSpec resourceSpec,
org.apache.flink.configuration.MemorySize networkMemory) |
ResourceProfile |
ResourceBudgetManager.getAvailableBudget() |
ResourceProfile |
SlotProfile.getPhysicalSlotResourceProfile()
Returns the desired resource profile for the physical slot to host this task slot.
|
ResourceProfile |
SlotProfile.getTaskResourceProfile()
Returns the desired resource profile for the task slot.
|
ResourceProfile |
ResourceBudgetManager.getTotalBudget() |
ResourceProfile |
ResourceProfile.merge(ResourceProfile other)
Calculates the sum of two resource profiles.
|
ResourceProfile |
ResourceProfile.subtract(ResourceProfile other)
Subtracts another piece of resource profile from this one.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
ResourceProfile.isMatching(ResourceProfile required)
Check whether required resource profile can be matched.
|
ResourceProfile |
ResourceProfile.merge(ResourceProfile other)
Calculates the sum of two resource profiles.
|
static SlotProfile |
SlotProfile.noLocality(ResourceProfile resourceProfile)
Returns a slot profile for the given resource profile, without any locality requirements.
|
static SlotProfile |
SlotProfile.preferredLocality(ResourceProfile resourceProfile,
Collection<TaskManagerLocation> preferredLocations)
Returns a slot profile for the given resource profile and the preferred locations.
|
static SlotProfile |
SlotProfile.priorAllocation(ResourceProfile taskResourceProfile,
ResourceProfile physicalSlotResourceProfile,
Collection<TaskManagerLocation> preferredLocations,
Collection<AllocationID> priorAllocations,
Set<AllocationID> previousExecutionGraphAllocations)
Returns a slot profile for the given resource profile, prior allocations and
all prior allocation ids from the whole execution graph.
|
boolean |
ResourceBudgetManager.release(ResourceProfile reservation) |
boolean |
ResourceBudgetManager.reserve(ResourceProfile reservation) |
ResourceProfile |
ResourceProfile.subtract(ResourceProfile other)
Subtracts another piece of resource profile from this one.
|
| Constructor and Description |
|---|
ResourceBudgetManager(ResourceProfile totalBudget) |
| Modifier and Type | Method and Description |
|---|---|
ResourceProfile |
ExecutionVertex.getResourceProfile() |
ResourceProfile |
ArchivedExecutionJobVertex.getResourceProfile() |
ResourceProfile |
ExecutionJobVertex.getResourceProfile() |
ResourceProfile |
AccessExecutionJobVertex.getResourceProfile()
Returns the resource profile for this job vertex.
|
| Constructor and Description |
|---|
ArchivedExecutionJobVertex(ArchivedExecutionVertex[] taskVertices,
JobVertexID id,
String name,
int parallelism,
int maxParallelism,
ResourceProfile resourceProfile,
StringifiedAccumulatorResult[] archivedUserAccumulators) |
| Modifier and Type | Method and Description |
|---|---|
ResourceProfile |
SlotInfo.getResourceProfile()
Returns the resource profile of the slot.
|
| Modifier and Type | Method and Description |
|---|---|
ResourceProfile |
SlotSelectionStrategy.SlotInfoAndResources.getRemainingResources() |
abstract ResourceProfile |
SlotSharingManager.TaskSlot.getReservedResources()
Gets the total reserved resources of the slot and its descendants.
|
ResourceProfile |
SlotSharingManager.MultiTaskSlot.getReservedResources() |
ResourceProfile |
SlotSharingManager.SingleTaskSlot.getReservedResources() |
ResourceProfile |
SlotInfoWithUtilization.getResourceProfile() |
ResourceProfile |
SlotPoolImpl.PendingRequest.getResourceProfile() |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<PhysicalSlot> |
SlotPool.requestNewAllocatedBatchSlot(SlotRequestId slotRequestId,
ResourceProfile resourceProfile)
Requests the allocation of a new batch slot from the resource manager.
|
CompletableFuture<PhysicalSlot> |
SlotPoolImpl.requestNewAllocatedBatchSlot(SlotRequestId slotRequestId,
ResourceProfile resourceProfile) |
CompletableFuture<PhysicalSlot> |
SlotPool.requestNewAllocatedSlot(SlotRequestId slotRequestId,
ResourceProfile resourceProfile,
org.apache.flink.api.common.time.Time timeout)
Request the allocation of a new slot from the resource manager.
|
CompletableFuture<PhysicalSlot> |
SlotPoolImpl.requestNewAllocatedSlot(SlotRequestId slotRequestId,
ResourceProfile resourceProfile,
org.apache.flink.api.common.time.Time timeout) |
protected abstract Optional<SlotSelectionStrategy.SlotInfoAndLocality> |
LocationPreferenceSlotSelectionStrategy.selectWithoutLocationPreference(Collection<SlotSelectionStrategy.SlotInfoAndResources> availableSlots,
ResourceProfile resourceProfile) |
| Constructor and Description |
|---|
SlotInfoAndResources(SlotInfo slotInfo,
ResourceProfile remainingResources,
double taskExecutorUtilization) |
| Modifier and Type | Field and Description |
|---|---|
protected Collection<ResourceProfile> |
ActiveResourceManager.resourceProfilesPerWorker |
| Modifier and Type | Method and Description |
|---|---|
ResourceProfile |
TaskExecutorRegistration.getDefaultSlotResourceProfile() |
ResourceProfile |
SlotRequest.getResourceProfile()
Get the resource profile of the desired slot
|
ResourceProfile |
TaskExecutorRegistration.getTotalResourceProfile() |
| Modifier and Type | Method and Description |
|---|---|
abstract Collection<ResourceProfile> |
ResourceManager.startNewWorker(ResourceProfile resourceProfile)
Allocates a resource using the resource profile.
|
Collection<ResourceProfile> |
StandaloneResourceManager.startNewWorker(ResourceProfile resourceProfile) |
| Modifier and Type | Method and Description |
|---|---|
void |
ResourceManagerServices.allocateResource(ResourceProfile resourceProfile)
Allocates a resource according to the resource profile.
|
abstract Collection<ResourceProfile> |
ResourceManager.startNewWorker(ResourceProfile resourceProfile)
Allocates a resource using the resource profile.
|
Collection<ResourceProfile> |
StandaloneResourceManager.startNewWorker(ResourceProfile resourceProfile) |
| Constructor and Description |
|---|
SlotRequest(org.apache.flink.api.common.JobID jobId,
AllocationID allocationId,
ResourceProfile resourceProfile,
String targetAddress) |
TaskExecutorRegistration(String taskExecutorAddress,
ResourceID resourceId,
int dataPort,
HardwareDescription hardwareDescription,
ResourceProfile defaultSlotResourceProfile,
ResourceProfile totalResourceProfile) |
| Constructor and Description |
|---|
UnfulfillableSlotRequestException(AllocationID allocationId,
ResourceProfile resourceProfile) |
| Modifier and Type | Method and Description |
|---|---|
ResourceProfile |
TaskManagerSlotInformation.getResourceProfile()
Get resource profile of this slot.
|
ResourceProfile |
TaskManagerSlot.getResourceProfile() |
ResourceProfile |
PendingTaskManagerSlot.getResourceProfile() |
ResourceProfile |
PendingSlotRequest.getResourceProfile() |
| Modifier and Type | Method and Description |
|---|---|
Collection<ResourceProfile> |
ResourceActions.allocateResource(ResourceProfile resourceProfile)
Requests to allocate a resource with the given
ResourceProfile. |
| Modifier and Type | Method and Description |
|---|---|
Collection<ResourceProfile> |
ResourceActions.allocateResource(ResourceProfile resourceProfile)
Requests to allocate a resource with the given
ResourceProfile. |
<T extends TaskManagerSlotInformation> |
LeastUtilizationSlotMatchingStrategy.findMatchingSlot(ResourceProfile requestedProfile,
Collection<T> freeSlots,
java.util.function.Function<InstanceID,Integer> numberRegisteredSlotsLookup) |
<T extends TaskManagerSlotInformation> |
SlotMatchingStrategy.findMatchingSlot(ResourceProfile requestedProfile,
Collection<T> freeSlots,
java.util.function.Function<InstanceID,Integer> numberRegisteredSlotsLookup)
Finds a matching slot for the requested
ResourceProfile given the
collection of free slots and the total number of slots per TaskExecutor. |
<T extends TaskManagerSlotInformation> |
AnyMatchingSlotMatchingStrategy.findMatchingSlot(ResourceProfile requestedProfile,
Collection<T> freeSlots,
java.util.function.Function<InstanceID,Integer> numberRegisteredSlotsLookup) |
boolean |
TaskManagerSlotInformation.isMatchingRequirement(ResourceProfile required)
Returns true if the required
ResourceProfile can be fulfilled
by this slot. |
boolean |
TaskManagerSlot.isMatchingRequirement(ResourceProfile required)
Check whether required resource profile can be matched by this slot.
|
| Constructor and Description |
|---|
PendingTaskManagerSlot(ResourceProfile resourceProfile) |
TaskManagerSlot(SlotID slotId,
ResourceProfile resourceProfile,
TaskExecutorConnection taskManagerConnection) |
| Modifier and Type | Method and Description |
|---|---|
ResourceProfile |
ExecutionVertexSchedulingRequirements.getPhysicalSlotResourceProfile() |
static ResourceProfile |
ExecutionVertexSchedulingRequirementsMapper.getPhysicalSlotResourceProfile(ExecutionVertex executionVertex)
Get resource profile of the physical slot to allocate a logical slot in for the given vertex.
|
ResourceProfile |
ExecutionVertexSchedulingRequirements.getTaskResourceProfile() |
| Modifier and Type | Method and Description |
|---|---|
ExecutionVertexSchedulingRequirements.Builder |
ExecutionVertexSchedulingRequirements.Builder.withPhysicalSlotResourceProfile(ResourceProfile physicalSlotResourceProfile) |
ExecutionVertexSchedulingRequirements.Builder |
ExecutionVertexSchedulingRequirements.Builder.withTaskResourceProfile(ResourceProfile taskResourceProfile) |
| Modifier and Type | Method and Description |
|---|---|
ResourceProfile |
TaskManagerConfiguration.getDefaultSlotResourceProfile() |
ResourceProfile |
SlotStatus.getResourceProfile()
Get the resource profile of this slot.
|
ResourceProfile |
TaskManagerConfiguration.getTotalResourceProfile() |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Acknowledge> |
TaskExecutorGateway.requestSlot(SlotID slotId,
org.apache.flink.api.common.JobID jobId,
AllocationID allocationId,
ResourceProfile resourceProfile,
String targetAddress,
ResourceManagerId resourceManagerId,
org.apache.flink.api.common.time.Time timeout)
Requests a slot from the TaskManager.
|
CompletableFuture<Acknowledge> |
TaskExecutor.requestSlot(SlotID slotId,
org.apache.flink.api.common.JobID jobId,
AllocationID allocationId,
ResourceProfile resourceProfile,
String targetAddress,
ResourceManagerId resourceManagerId,
org.apache.flink.api.common.time.Time timeout) |
| Constructor and Description |
|---|
SlotStatus(SlotID slotID,
ResourceProfile resourceProfile) |
SlotStatus(SlotID slotID,
ResourceProfile resourceProfile,
org.apache.flink.api.common.JobID jobID,
AllocationID allocationID) |
TaskManagerConfiguration(int numberSlots,
ResourceProfile defaultSlotResourceProfile,
ResourceProfile totalResourceProfile,
String[] tmpDirectories,
org.apache.flink.api.common.time.Time timeout,
org.apache.flink.api.common.time.Time maxRegistrationDuration,
org.apache.flink.api.common.time.Time initialRegistrationPause,
org.apache.flink.api.common.time.Time maxRegistrationPause,
org.apache.flink.api.common.time.Time refusedRegistrationPause,
org.apache.flink.configuration.Configuration configuration,
boolean exitJvmOnOutOfMemory,
FlinkUserCodeClassLoaders.ResolveOrder classLoaderResolveOrder,
String[] alwaysParentFirstLoaderPatterns,
String taskManagerLogPath,
String taskManagerStdoutPath,
RetryingRegistrationConfiguration retryingRegistrationConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
ResourceProfile |
SlotOffer.getResourceProfile() |
ResourceProfile |
TaskSlot.getResourceProfile() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
TaskSlotTableImpl.allocateSlot(int index,
org.apache.flink.api.common.JobID jobId,
AllocationID allocationId,
ResourceProfile resourceProfile,
org.apache.flink.api.common.time.Time slotTimeout) |
boolean |
TaskSlotTable.allocateSlot(int index,
org.apache.flink.api.common.JobID jobId,
AllocationID allocationId,
ResourceProfile resourceProfile,
org.apache.flink.api.common.time.Time slotTimeout)
Allocate the slot with the given index for the given job and allocation id.
|
| Constructor and Description |
|---|
SlotOffer(AllocationID allocationID,
int index,
ResourceProfile resourceProfile) |
TaskSlot(int index,
ResourceProfile resourceProfile,
int memoryPageSize,
org.apache.flink.api.common.JobID jobId,
AllocationID allocationId) |
TaskSlotTableImpl(int numberSlots,
ResourceProfile totalAvailableResourceProfile,
ResourceProfile defaultSlotResourceProfile,
int memoryPageSize,
TimerService<AllocationID> timerService) |
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.