Class FifoIntraQueuePreemptionPlugin
java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.monitor.capacity.FifoIntraQueuePreemptionPlugin
FifoIntraQueuePreemptionPlugin will handle intra-queue preemption for
priority and user-limit.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final CapacitySchedulerPreemptionContextprotected final org.apache.hadoop.yarn.util.resource.ResourceCalculator -
Constructor Summary
ConstructorsConstructorDescriptionFifoIntraQueuePreemptionPlugin(org.apache.hadoop.yarn.util.resource.ResourceCalculator rc, CapacitySchedulerPreemptionContext preemptionContext) -
Method Summary
Modifier and TypeMethodDescriptionvoidcomputeAppsIdealAllocation(org.apache.hadoop.yarn.api.records.Resource clusterResource, TempQueuePerPartition tq, Map<org.apache.hadoop.yarn.api.records.ApplicationAttemptId, Set<RMContainer>> selectedCandidates, org.apache.hadoop.yarn.api.records.Resource totalPreemptedResourceAllowed, org.apache.hadoop.yarn.api.records.Resource queueReassignableResource, float maxAllowablePreemptLimit) getPreemptableApps(String queueName, String partition) getResourceDemandFromAppsPerQueue(String queueName, String partition) booleanskipContainerBasedOnIntraQueuePolicy(FiCaSchedulerApp app, org.apache.hadoop.yarn.api.records.Resource clusterResource, org.apache.hadoop.yarn.api.records.Resource usedResource, RMContainer c) voidvalidateOutSameAppPriorityFromDemand(org.apache.hadoop.yarn.api.records.Resource cluster, TreeSet<TempAppPerPartition> orderedApps, Map<String, TempUserPerPartition> usersPerPartition, ProportionalCapacityPreemptionPolicy.IntraQueuePreemptionOrderPolicy intraQueuePreemptionOrder)
-
Field Details
-
context
-
rc
protected final org.apache.hadoop.yarn.util.resource.ResourceCalculator rc
-
-
Constructor Details
-
FifoIntraQueuePreemptionPlugin
public FifoIntraQueuePreemptionPlugin(org.apache.hadoop.yarn.util.resource.ResourceCalculator rc, CapacitySchedulerPreemptionContext preemptionContext)
-
-
Method Details
-
getPreemptableApps
-
getResourceDemandFromAppsPerQueue
-
computeAppsIdealAllocation
public void computeAppsIdealAllocation(org.apache.hadoop.yarn.api.records.Resource clusterResource, TempQueuePerPartition tq, Map<org.apache.hadoop.yarn.api.records.ApplicationAttemptId, Set<RMContainer>> selectedCandidates, org.apache.hadoop.yarn.api.records.Resource totalPreemptedResourceAllowed, org.apache.hadoop.yarn.api.records.Resource queueReassignableResource, float maxAllowablePreemptLimit) -
validateOutSameAppPriorityFromDemand
public void validateOutSameAppPriorityFromDemand(org.apache.hadoop.yarn.api.records.Resource cluster, TreeSet<TempAppPerPartition> orderedApps, Map<String, TempUserPerPartition> usersPerPartition, ProportionalCapacityPreemptionPolicy.IntraQueuePreemptionOrderPolicy intraQueuePreemptionOrder) -
skipContainerBasedOnIntraQueuePolicy
public boolean skipContainerBasedOnIntraQueuePolicy(FiCaSchedulerApp app, org.apache.hadoop.yarn.api.records.Resource clusterResource, org.apache.hadoop.yarn.api.records.Resource usedResource, RMContainer c)
-