Modifier and Type | Method and Description |
---|---|
NormalizedResourceOffer |
ISchedulingState.getAvailableResources(SupervisorDetails sd)
Get the resources on the supervisor that are available to be scheduled.
|
NormalizedResourceOffer |
Cluster.getAvailableResources(SupervisorDetails sd) |
NormalizedResourceOffer |
ISchedulingState.getNonBlacklistedClusterAvailableResources(Collection<String> blacklistedSupervisorIds)
Get the resources in the cluster that are available for scheduling.
|
NormalizedResourceOffer |
Cluster.getNonBlacklistedClusterAvailableResources(Collection<String> blacklistedSupervisorIds) |
NormalizedResourceOffer |
SupervisorDetails.getTotalResources()
Get all resources for this Supervisor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
ISchedulingState.wouldFit(WorkerSlot ws,
ExecutorDetails exec,
TopologyDetails td,
NormalizedResourceOffer resourcesAvailable,
double maxHeap)
Would scheduling exec on ws fit? With a heap <= maxHeap total memory added <= memoryAvailable and cpu added <= cpuAvailable.
|
boolean |
Cluster.wouldFit(WorkerSlot ws,
ExecutorDetails exec,
TopologyDetails td,
NormalizedResourceOffer resourcesAvailable,
double maxHeap) |
Modifier and Type | Method and Description |
---|---|
NormalizedResourceOffer |
RasNode.getTotalAvailableResources()
Gets all available resources for this node.
|
NormalizedResourceOffer |
RasNode.getTotalResources()
Gets total resources for this node.
|
Modifier and Type | Method and Description |
---|---|
double |
NormalizedResourceOffer.calculateAveragePercentageUsedBy(NormalizedResourceOffer used)
Calculate the average percentage used.
|
double |
NormalizedResourceOffer.calculateMinPercentageUsedBy(NormalizedResourceOffer used)
Calculate the min percentage used of the resource.
|
Constructor and Description |
---|
NormalizedResourceOffer(NormalizedResourceOffer other)
Copy Constructor.
|
Modifier and Type | Field and Description |
---|---|
NormalizedResourceOffer |
BaseResourceAwareStrategy.ObjectResources.availableResources |
NormalizedResourceOffer |
BaseResourceAwareStrategy.ObjectResources.totalResources |
Constructor and Description |
---|
AllResources(List<BaseResourceAwareStrategy.ObjectResources> objectResources,
NormalizedResourceOffer availableResourcesOverall,
NormalizedResourceOffer totalResourcesOverall,
String identifier) |
ObjectResources(String id,
NormalizedResourceOffer availableResources,
NormalizedResourceOffer totalResources,
double effectiveResources) |
Copyright © 2020 The Apache Software Foundation. All rights reserved.