Class AbstractAutoCreatedLeafQueue
java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.AbstractCSQueue
org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.AbstractLeafQueue
org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.AbstractAutoCreatedLeafQueue
- All Implemented Interfaces:
CSQueue,Queue,SchedulerQueue<CSQueue>
- Direct Known Subclasses:
AutoCreatedLeafQueue,ReservationQueue
Abstract class for dynamic auto created queues managed by an implementation
of AbstractManagedParentQueue
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.AbstractCSQueue
AbstractCSQueue.CapacityConfigType -
Field Summary
FieldsFields inherited from class org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.AbstractLeafQueue
maxApplications, maxApplicationsPerUserFields inherited from class org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.AbstractCSQueue
activitiesManager, authorizer, capacityConfigType, configuredCapacityVectors, configuredMaxCapacityVectors, queueAllocationSettings, queueContext, queueEntity, queueNodeLabelsSettings, queuePath, readLock, writeLock -
Constructor Summary
ConstructorsConstructorDescriptionAbstractAutoCreatedLeafQueue(CapacitySchedulerQueueContext queueContext, String queueName, AbstractManagedParentQueue parent, CSQueue old) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancheckConfigTypeIsAbsoluteResource(QueuePath queuePath, String label) protected org.apache.hadoop.yarn.api.records.ResourcegetMaximumAbsoluteResource(QueuePath queuePath, String label) protected org.apache.hadoop.yarn.api.records.ResourcegetMinimumAbsoluteResource(QueuePath queuePath, String label) voidsetEntitlement(String nodeLabel, QueueEntitlement entitlement) This methods to change capacity for a queue and adjusts its absoluteCapacity.voidsetEntitlement(QueueEntitlement entitlement) This methods to change capacity for a queue and adjusts its absoluteCapacityMethods inherited from class org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.AbstractLeafQueue
accept, activateApplications, apply, assignContainers, attachContainer, calculateAndGetAMResourceLimit, calculateAndGetAMResourceLimitPerPartition, canAssignToUser, collectSchedulerApplications, completedContainer, decAMUsedResource, decUsedResource, detachContainer, finishApplication, finishApplicationAttempt, getAbstractUsersManager, getAllApplications, getAllUsers, getAMResourceLimit, getAMResourceLimitPerPartition, getApplications, getChildQueues, getChildQueuesByTryLock, getDefaultApplicationPriority, getExtendedCapacityOrWeightString, getHeadroom, getHeadroom, getIgnoreExclusivityRMContainers, getMaxAMResourcePerQueuePercent, getMaxApplications, getMaxApplicationsPerUser, getMinimumAllocationFactor, getNodeLocalityDelay, getNumActiveApplications, getNumActiveApplications, getNumApplications, getNumPendingApplications, getNumPendingApplications, getOrCreateUser, getOrderingPolicy, getPendingApplications, getPendingAppsOrderingPolicy, getPriorityACLs, getQueueInfo, getQueueUserAclInfo, getRackLocalityAdditionalDelay, getRackLocalityFullReset, getResourceLimitForActiveUsers, getResourceLimitForAllUsers, getTotalPendingResourcesConsideringUserLimit, getUser, getUserAMResourceLimit, getUserAMResourceLimitPerPartition, getUserLimit, getUserLimitFactor, getUsersManager, incAMUsedResource, incUsedResource, isEligibleForAutoDeletion, parseAndSetDynamicTemplates, recalculateQueueUsageRatio, recoverContainer, refreshAfterResourceCalculation, reinitialize, setAbsoluteCapacity, setAbsoluteCapacity, setCapacity, setCapacity, setDynamicQueueACLProperties, setMaxAMResourcePerQueuePercent, setMaxApplications, setMaxApplicationsPerUser, setupQueueConfigs, stopQueue, submitApplication, submitApplicationAttempt, submitApplicationAttempt, toString, updateApplicationPriority, updateClusterResource, updateClusterResourceLegacyMode, validateSubmitApplicationMethods inherited from class org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.AbstractCSQueue
activateQueue, appFinished, assignContainers, decPendingResource, decReservedResource, getAbsoluteCapacity, getAbsoluteMaximumCapacity, getAbsoluteUsedCapacity, getAccessibleNodeLabels, getACLs, getCapacity, getCapacityConfigType, getCapacityOrWeightString, getConfiguredCapacityVector, getConfiguredMaxCapacityVector, getConfiguredNodeLabels, getDefaultApplicationLifetime, getDefaultAppLifetimeWasSpecifiedInConfig, getDefaultNodeLabelExpression, getEffectiveCapacity, getEffectiveCapacityDown, getEffectiveMaxCapacity, getEffectiveMaxCapacityDown, getIntraQueuePreemptionDisabled, getIntraQueuePreemptionDisabledInHierarchy, getKillableContainers, getMaximumAllocation, getMaximumApplicationLifetime, getMaximumCapacity, getMaxParallelApps, getMetrics, getMinimumAllocation, getMultiNodeSortingPolicyClassName, getNodeLabelsForQueue, getNumContainers, getParent, getPreemptionDisabled, getPriority, getPrivilegedEntity, getQueueCapacities, getQueueContext, getQueueInfo, getQueueName, getQueuePath, getQueuePathObject, getQueueResourceQuotas, getQueueResourceUsage, getQueueShortName, getReadLock, getState, getTotalKillableResource, getUsedCapacity, getUsedResources, getUserWeights, getWriteLock, hasAccess, incPendingResource, incReservedResource, isDynamicQueue, isInactiveDynamicQueue, isReservationsContinueLooking, overrideCapacityVectorsForSpecialQueues, recoverDrainingState, releaseResource, setConfiguredMaxCapacityVector, setConfiguredMinCapacityVector, setDynamicQueue, setMaxParallelApps, setMultiNodeSortingPolicyClassName, setParent, setupConfigurableCapacities, updateAbsoluteCapacities, updateCapacityConfigType, updateConfigurableResourceLimits, updateQueueState
-
Field Details
-
parent
-
-
Constructor Details
-
AbstractAutoCreatedLeafQueue
public AbstractAutoCreatedLeafQueue(CapacitySchedulerQueueContext queueContext, String queueName, AbstractManagedParentQueue parent, CSQueue old) throws IOException - Throws:
IOException
-
-
Method Details
-
setEntitlement
This methods to change capacity for a queue and adjusts its absoluteCapacity- Parameters:
entitlement- the new entitlement for the queue (capacity, maxCapacity, etc..)- Throws:
SchedulerDynamicEditException- when setEntitlement fails.
-
getMinimumAbsoluteResource
protected org.apache.hadoop.yarn.api.records.Resource getMinimumAbsoluteResource(QueuePath queuePath, String label) - Overrides:
getMinimumAbsoluteResourcein classAbstractCSQueue
-
getMaximumAbsoluteResource
protected org.apache.hadoop.yarn.api.records.Resource getMaximumAbsoluteResource(QueuePath queuePath, String label) - Overrides:
getMaximumAbsoluteResourcein classAbstractCSQueue
-
checkConfigTypeIsAbsoluteResource
- Overrides:
checkConfigTypeIsAbsoluteResourcein classAbstractCSQueue
-
setEntitlement
public void setEntitlement(String nodeLabel, QueueEntitlement entitlement) throws SchedulerDynamicEditException This methods to change capacity for a queue and adjusts its absoluteCapacity.- Parameters:
nodeLabel- nodeLabel.entitlement- the new entitlement for the queue (capacity, maxCapacity, etc..)- Throws:
SchedulerDynamicEditException- when setEntitlement fails.
-