public class AbstractLeafQueue extends AbstractCSQueue
AbstractCSQueue.CapacityConfigType| Modifier and Type | Field and Description |
|---|---|
protected int |
maxApplications |
protected int |
maxApplicationsPerUser |
activitiesManager, authorizer, capacityConfigType, configuredCapacityVectors, configuredMaxCapacityVectors, queueAllocationSettings, queueContext, queueEntity, queueNodeLabelsSettings, queuePath, readLock, writeLock| Constructor and Description |
|---|
AbstractLeafQueue(CapacitySchedulerQueueContext queueContext,
String queueName,
CSQueue parent,
CSQueue old) |
AbstractLeafQueue(CapacitySchedulerQueueContext queueContext,
String queueName,
CSQueue parent,
CSQueue old,
boolean isDynamic) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(org.apache.hadoop.yarn.api.records.Resource cluster,
ResourceCommitRequest<FiCaSchedulerApp,FiCaSchedulerNode> request)
Checks whether this queue could accept the container allocation request.
|
protected void |
activateApplications() |
void |
apply(org.apache.hadoop.yarn.api.records.Resource cluster,
ResourceCommitRequest<FiCaSchedulerApp,FiCaSchedulerNode> request) |
CSAssignment |
assignContainers(org.apache.hadoop.yarn.api.records.Resource clusterResource,
CandidateNodeSet<FiCaSchedulerNode> candidates,
ResourceLimits currentResourceLimits,
SchedulingMode schedulingMode)
Assign containers to applications in the queue or it's children (if any).
|
void |
attachContainer(org.apache.hadoop.yarn.api.records.Resource clusterResource,
FiCaSchedulerApp application,
RMContainer rmContainer)
Attach a container to this queue
|
org.apache.hadoop.yarn.api.records.Resource |
calculateAndGetAMResourceLimit() |
org.apache.hadoop.yarn.api.records.Resource |
calculateAndGetAMResourceLimitPerPartition(String nodePartition) |
protected boolean |
canAssignToUser(org.apache.hadoop.yarn.api.records.Resource clusterResource,
String userName,
org.apache.hadoop.yarn.api.records.Resource limit,
FiCaSchedulerApp application,
String nodePartition,
ResourceLimits currentResourceLimits) |
void |
collectSchedulerApplications(Collection<org.apache.hadoop.yarn.api.records.ApplicationAttemptId> apps)
Adds all applications in the queue and its subqueues to the given collection.
|
void |
completedContainer(org.apache.hadoop.yarn.api.records.Resource clusterResource,
FiCaSchedulerApp application,
FiCaSchedulerNode node,
RMContainer rmContainer,
org.apache.hadoop.yarn.api.records.ContainerStatus containerStatus,
RMContainerEventType event,
CSQueue childQueue,
boolean sortQueues)
A container assigned to the queue has completed.
|
void |
decAMUsedResource(String nodeLabel,
org.apache.hadoop.yarn.api.records.Resource resourceToDec,
SchedulerApplicationAttempt application) |
void |
decUsedResource(String nodeLabel,
org.apache.hadoop.yarn.api.records.Resource resourceToDec,
SchedulerApplicationAttempt application)
When partition of node updated, we will update queue's resource usage if it
has container(s) running on that.
|
void |
detachContainer(org.apache.hadoop.yarn.api.records.Resource clusterResource,
FiCaSchedulerApp application,
RMContainer rmContainer)
Detach a container from this queue
|
void |
finishApplication(org.apache.hadoop.yarn.api.records.ApplicationId application,
String user)
An application submitted to this queue has finished.
|
void |
finishApplicationAttempt(FiCaSchedulerApp application,
String queue)
An application attempt submitted to this queue has finished.
|
AbstractUsersManager |
getAbstractUsersManager()
Get the
AbstractUsersManager for the queue. |
Collection<FiCaSchedulerApp> |
getAllApplications()
Obtain (read-only) collection of all applications.
|
Set<String> |
getAllUsers()
Get all valid users in this queue.
|
org.apache.hadoop.yarn.api.records.Resource |
getAMResourceLimit() |
org.apache.hadoop.yarn.api.records.Resource |
getAMResourceLimitPerPartition(String nodePartition) |
Collection<FiCaSchedulerApp> |
getApplications()
Obtain (read-only) collection of active applications.
|
List<CSQueue> |
getChildQueues()
Get child queues
|
org.apache.hadoop.yarn.api.records.Priority |
getDefaultApplicationPriority()
Get the Default Application Priority for this queue
|
protected String |
getExtendedCapacityOrWeightString() |
protected org.apache.hadoop.yarn.api.records.Resource |
getHeadroom(UsersManager.User user,
org.apache.hadoop.yarn.api.records.Resource queueCurrentLimit,
org.apache.hadoop.yarn.api.records.Resource clusterResource,
FiCaSchedulerApp application) |
protected org.apache.hadoop.yarn.api.records.Resource |
getHeadroom(UsersManager.User user,
org.apache.hadoop.yarn.api.records.Resource queueCurrentLimit,
org.apache.hadoop.yarn.api.records.Resource clusterResource,
FiCaSchedulerApp application,
String partition) |
Map<String,TreeSet<RMContainer>> |
getIgnoreExclusivityRMContainers() |
float |
getMaxAMResourcePerQueuePercent()
Used only by tests.
|
int |
getMaxApplications() |
int |
getMaxApplicationsPerUser() |
float |
getMinimumAllocationFactor()
Used only by tests.
|
int |
getNodeLocalityDelay() |
int |
getNumActiveApplications() |
int |
getNumActiveApplications(String user) |
int |
getNumApplications()
Get the number of applications in the queue.
|
int |
getNumPendingApplications() |
int |
getNumPendingApplications(String user) |
UsersManager.User |
getOrCreateUser(String userName) |
OrderingPolicy<FiCaSchedulerApp> |
getOrderingPolicy() |
Collection<FiCaSchedulerApp> |
getPendingApplications()
Obtain (read-only) collection of pending applications.
|
OrderingPolicy<FiCaSchedulerApp> |
getPendingAppsOrderingPolicy() |
List<AppPriorityACLGroup> |
getPriorityACLs() |
org.apache.hadoop.yarn.api.records.QueueInfo |
getQueueInfo(boolean includeChildQueues,
boolean recursive)
Get queue information
|
List<org.apache.hadoop.yarn.api.records.QueueUserACLInfo> |
getQueueUserAclInfo(org.apache.hadoop.security.UserGroupInformation user)
Get queue ACLs for given
user. |
int |
getRackLocalityAdditionalDelay() |
boolean |
getRackLocalityFullReset() |
org.apache.hadoop.yarn.api.records.Resource |
getResourceLimitForActiveUsers(String userName,
org.apache.hadoop.yarn.api.records.Resource clusterResource,
String nodePartition,
SchedulingMode schedulingMode) |
org.apache.hadoop.yarn.api.records.Resource |
getResourceLimitForAllUsers(String userName,
org.apache.hadoop.yarn.api.records.Resource clusterResource,
String nodePartition,
SchedulingMode schedulingMode) |
org.apache.hadoop.yarn.api.records.Resource |
getTotalPendingResourcesConsideringUserLimit(org.apache.hadoop.yarn.api.records.Resource clusterResources,
String partition,
boolean deductReservedFromPending)
Get total pending resource considering user limit for the leaf queue.
|
UsersManager.User |
getUser(String userName) |
org.apache.hadoop.yarn.api.records.Resource |
getUserAMResourceLimit() |
org.apache.hadoop.yarn.api.records.Resource |
getUserAMResourceLimitPerPartition(String nodePartition,
String userName) |
float |
getUserLimit() |
float |
getUserLimitFactor() |
UsersManager |
getUsersManager() |
void |
incAMUsedResource(String nodeLabel,
org.apache.hadoop.yarn.api.records.Resource resourceToInc,
SchedulerApplicationAttempt application) |
void |
incUsedResource(String nodeLabel,
org.apache.hadoop.yarn.api.records.Resource resourceToInc,
SchedulerApplicationAttempt application)
When partition of node updated, we will update queue's resource usage if it
has container(s) running on that.
|
boolean |
isEligibleForAutoDeletion()
Checks whether this queue is a dynamic queue and could be deleted.
|
protected void |
parseAndSetDynamicTemplates()
Set properties specific to dynamic queues.
|
void |
recalculateQueueUsageRatio(org.apache.hadoop.yarn.api.records.Resource clusterResource,
String nodePartition)
Recalculate QueueUsage Ratio.
|
void |
recoverContainer(org.apache.hadoop.yarn.api.records.Resource clusterResource,
SchedulerApplicationAttempt attempt,
RMContainer rmContainer)
Recover the state of the queue for a given container.
|
void |
refreshAfterResourceCalculation(org.apache.hadoop.yarn.api.records.Resource clusterResource,
ResourceLimits resourceLimits) |
void |
reinitialize(CSQueue newlyParsedQueue,
org.apache.hadoop.yarn.api.records.Resource clusterResource)
Reinitialize the queue.
|
void |
setAbsoluteCapacity(float absoluteCapacity) |
void |
setAbsoluteCapacity(String nodeLabel,
float absoluteCapacity) |
void |
setCapacity(float capacity) |
void |
setCapacity(String nodeLabel,
float capacity) |
protected void |
setDynamicQueueACLProperties() |
void |
setMaxAMResourcePerQueuePercent(float maxAMResourcePerQueuePercent) |
void |
setMaxApplications(int maxApplications) |
void |
setMaxApplicationsPerUser(int maxApplicationsPerUser) |
protected void |
setupQueueConfigs(org.apache.hadoop.yarn.api.records.Resource clusterResource)
Initialize queue properties that are based on configuration.
|
void |
stopQueue()
Stop the queue.
|
void |
submitApplication(org.apache.hadoop.yarn.api.records.ApplicationId applicationId,
String userName,
String queue)
Submit a new application to the queue.
|
void |
submitApplicationAttempt(FiCaSchedulerApp application,
String userName)
Submit an application attempt to the queue.
|
void |
submitApplicationAttempt(FiCaSchedulerApp application,
String userName,
boolean isMoveApp)
Submit an application attempt to the queue.
|
String |
toString() |
void |
updateApplicationPriority(SchedulerApplication<FiCaSchedulerApp> app,
org.apache.hadoop.yarn.api.records.Priority newAppPriority) |
void |
updateClusterResource(org.apache.hadoop.yarn.api.records.Resource clusterResource,
ResourceLimits currentResourceLimits)
Update the cluster resource for queues as we add/remove nodes
|
void |
updateClusterResourceLegacyMode(org.apache.hadoop.yarn.api.records.Resource clusterResource,
ResourceLimits currentResourceLimits) |
void |
validateSubmitApplication(org.apache.hadoop.yarn.api.records.ApplicationId applicationId,
String userName,
String queue)
Validate submitApplication api so that moveApplication do a pre-check.
|
activateQueue, appFinished, assignContainers, checkConfigTypeIsAbsoluteResource, decPendingResource, decReservedResource, getAbsoluteCapacity, getAbsoluteMaximumCapacity, getAbsoluteUsedCapacity, getAccessibleNodeLabels, getACLs, getCapacity, getCapacityConfigType, getCapacityOrWeightString, getConfiguredCapacityVector, getConfiguredMaxCapacityVector, getConfiguredNodeLabels, getDefaultApplicationLifetime, getDefaultAppLifetimeWasSpecifiedInConfig, getDefaultNodeLabelExpression, getEffectiveCapacity, getEffectiveCapacityDown, getEffectiveMaxCapacity, getEffectiveMaxCapacityDown, getIntraQueuePreemptionDisabled, getIntraQueuePreemptionDisabledInHierarchy, getKillableContainers, getMaximumAbsoluteResource, getMaximumAllocation, getMaximumApplicationLifetime, getMaximumCapacity, getMaxParallelApps, getMetrics, getMinimumAbsoluteResource, getMinimumAllocation, getMultiNodeSortingPolicyName, 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, setMultiNodeSortingPolicyName, setParent, setupConfigurableCapacities, updateAbsoluteCapacities, updateCapacityConfigType, updateConfigurableResourceLimits, updateQueueStateprotected int maxApplications
protected volatile int maxApplicationsPerUser
public AbstractLeafQueue(CapacitySchedulerQueueContext queueContext, String queueName, CSQueue parent, CSQueue old) throws IOException
IOExceptionpublic AbstractLeafQueue(CapacitySchedulerQueueContext queueContext, String queueName, CSQueue parent, CSQueue old, boolean isDynamic) throws IOException
IOExceptionprotected void setupQueueConfigs(org.apache.hadoop.yarn.api.records.Resource clusterResource)
throws IOException
AbstractCSQueuesetupQueueConfigs in class AbstractCSQueueclusterResource - overall resource of the clusterIOException - if configuration is set in a way that is inconsistent@InterfaceAudience.Private public float getMinimumAllocationFactor()
@InterfaceAudience.Private public float getMaxAMResourcePerQueuePercent()
public int getMaxApplications()
public int getMaxApplicationsPerUser()
public UsersManager getUsersManager()
public AbstractUsersManager getAbstractUsersManager()
CSQueueAbstractUsersManager for the queue.AbstractUsersManager for the queuepublic List<CSQueue> getChildQueues()
CSQueuepublic int getNumApplications()
CSQueuepublic int getNumPendingApplications()
public int getNumActiveApplications()
@InterfaceAudience.Private public int getNumPendingApplications(String user)
@InterfaceAudience.Private public int getNumActiveApplications(String user)
@InterfaceAudience.Private public float getUserLimit()
@InterfaceAudience.Private public float getUserLimitFactor()
public org.apache.hadoop.yarn.api.records.QueueInfo getQueueInfo(boolean includeChildQueues,
boolean recursive)
QueueincludeChildQueues - include child queues?recursive - recursively get child queue information?public List<org.apache.hadoop.yarn.api.records.QueueUserACLInfo> getQueueUserAclInfo(org.apache.hadoop.security.UserGroupInformation user)
Queueuser.user - usernameprotected String getExtendedCapacityOrWeightString()
@VisibleForTesting public UsersManager.User getUser(String userName)
@VisibleForTesting public UsersManager.User getOrCreateUser(String userName)
@InterfaceAudience.Private public List<AppPriorityACLGroup> getPriorityACLs()
public void reinitialize(CSQueue newlyParsedQueue, org.apache.hadoop.yarn.api.records.Resource clusterResource) throws IOException
CSQueuenewlyParsedQueue - new queue to re-initalize fromclusterResource - resources in the clusterIOException - an I/O exception has occurred.public void submitApplicationAttempt(FiCaSchedulerApp application, String userName)
CSQueueapplication - application whose attempt is being submitted.userName - userName who submitted the application.public void submitApplicationAttempt(FiCaSchedulerApp application, String userName, boolean isMoveApp)
CSQueueapplication - application whose attempt is being submitteduserName - user who submitted the application attemptisMoveApp - is application being moved across the queuepublic void submitApplication(org.apache.hadoop.yarn.api.records.ApplicationId applicationId,
String userName,
String queue)
throws org.apache.hadoop.security.AccessControlException
CSQueueapplicationId - the applicationId of the application being submitteduserName - user who submitted the applicationqueue - queue to which the application is submittedorg.apache.hadoop.security.AccessControlException - if any acl violation is there.public void validateSubmitApplication(org.apache.hadoop.yarn.api.records.ApplicationId applicationId,
String userName,
String queue)
throws org.apache.hadoop.security.AccessControlException
CSQueuevalidateSubmitApplication in interface CSQueuevalidateSubmitApplication in class AbstractCSQueueapplicationId - Application IDuserName - User Namequeue - Queue Nameorg.apache.hadoop.security.AccessControlException - if any acl violation is there.public org.apache.hadoop.yarn.api.records.Resource getAMResourceLimit()
public org.apache.hadoop.yarn.api.records.Resource getAMResourceLimitPerPartition(String nodePartition)
@VisibleForTesting public org.apache.hadoop.yarn.api.records.Resource calculateAndGetAMResourceLimit()
@VisibleForTesting public org.apache.hadoop.yarn.api.records.Resource getUserAMResourceLimit()
public org.apache.hadoop.yarn.api.records.Resource getUserAMResourceLimitPerPartition(String nodePartition, String userName)
public org.apache.hadoop.yarn.api.records.Resource calculateAndGetAMResourceLimitPerPartition(String nodePartition)
protected void activateApplications()
public void finishApplication(org.apache.hadoop.yarn.api.records.ApplicationId application,
String user)
CSQueueapplication - applicationId.user - user who submitted the applicationpublic void finishApplicationAttempt(FiCaSchedulerApp application, String queue)
CSQueueapplication - application attempt.queue - queue.public CSAssignment assignContainers(org.apache.hadoop.yarn.api.records.Resource clusterResource, CandidateNodeSet<FiCaSchedulerNode> candidates, ResourceLimits currentResourceLimits, SchedulingMode schedulingMode)
CSQueueclusterResource - the resource of the cluster.candidates - CandidateNodeSet the nodes that are considered
for the current placement.currentResourceLimits - how much overall resource of this queue can use.schedulingMode - Type of exclusive check when assign container on a
NodeManager, see SchedulingMode.public boolean accept(org.apache.hadoop.yarn.api.records.Resource cluster,
ResourceCommitRequest<FiCaSchedulerApp,FiCaSchedulerNode> request)
AbstractCSQueueaccept in interface CSQueueaccept in class AbstractCSQueuecluster - overall cluster resourcerequest - container allocation requestpublic void apply(org.apache.hadoop.yarn.api.records.Resource cluster,
ResourceCommitRequest<FiCaSchedulerApp,FiCaSchedulerNode> request)
protected org.apache.hadoop.yarn.api.records.Resource getHeadroom(UsersManager.User user, org.apache.hadoop.yarn.api.records.Resource queueCurrentLimit, org.apache.hadoop.yarn.api.records.Resource clusterResource, FiCaSchedulerApp application)
protected org.apache.hadoop.yarn.api.records.Resource getHeadroom(UsersManager.User user, org.apache.hadoop.yarn.api.records.Resource queueCurrentLimit, org.apache.hadoop.yarn.api.records.Resource clusterResource, FiCaSchedulerApp application, String partition)
@Lock(value=org.apache.hadoop.yarn.server.utils.Lock.NoLock.class) public int getNodeLocalityDelay()
@Lock(value=org.apache.hadoop.yarn.server.utils.Lock.NoLock.class) public int getRackLocalityAdditionalDelay()
@Lock(value=org.apache.hadoop.yarn.server.utils.Lock.NoLock.class) public boolean getRackLocalityFullReset()
public org.apache.hadoop.yarn.api.records.Resource getResourceLimitForActiveUsers(String userName, org.apache.hadoop.yarn.api.records.Resource clusterResource, String nodePartition, SchedulingMode schedulingMode)
userName - Name of user who has submitted one/more app to given queue.clusterResource - total cluster resourcenodePartition - partition nameschedulingMode - scheduling mode
RESPECT_PARTITION_EXCLUSIVITY/IGNORE_PARTITION_EXCLUSIVITYpublic org.apache.hadoop.yarn.api.records.Resource getResourceLimitForAllUsers(String userName, org.apache.hadoop.yarn.api.records.Resource clusterResource, String nodePartition, SchedulingMode schedulingMode)
userName - Name of user who has submitted one/more app to given queue.clusterResource - total cluster resourcenodePartition - partition nameschedulingMode - scheduling mode
RESPECT_PARTITION_EXCLUSIVITY/IGNORE_PARTITION_EXCLUSIVITY@InterfaceAudience.Private
protected boolean canAssignToUser(org.apache.hadoop.yarn.api.records.Resource clusterResource,
String userName,
org.apache.hadoop.yarn.api.records.Resource limit,
FiCaSchedulerApp application,
String nodePartition,
ResourceLimits currentResourceLimits)
protected void parseAndSetDynamicTemplates()
AbstractCSQueueparseAndSetDynamicTemplates in class AbstractCSQueueprotected void setDynamicQueueACLProperties()
setDynamicQueueACLProperties in class AbstractCSQueuepublic void recalculateQueueUsageRatio(org.apache.hadoop.yarn.api.records.Resource clusterResource,
String nodePartition)
clusterResource - Total Cluster ResourcenodePartition - Partitionpublic void completedContainer(org.apache.hadoop.yarn.api.records.Resource clusterResource,
FiCaSchedulerApp application,
FiCaSchedulerNode node,
RMContainer rmContainer,
org.apache.hadoop.yarn.api.records.ContainerStatus containerStatus,
RMContainerEventType event,
CSQueue childQueue,
boolean sortQueues)
CSQueueclusterResource - the resource of the clusterapplication - application to which the container was assignednode - node on which the container completedrmContainer - completed container,
null if it was just a reservationcontainerStatus - ContainerStatus for the completed
containerevent - event to be sent to the containerchildQueue - CSQueue to reinsert in childQueuessortQueues - indicates whether it should re-sort the queuespublic void refreshAfterResourceCalculation(org.apache.hadoop.yarn.api.records.Resource clusterResource,
ResourceLimits resourceLimits)
public void updateClusterResource(org.apache.hadoop.yarn.api.records.Resource clusterResource,
ResourceLimits currentResourceLimits)
CSQueueclusterResource - the current cluster resourcecurrentResourceLimits - the current ResourceLimitspublic void updateClusterResourceLegacyMode(org.apache.hadoop.yarn.api.records.Resource clusterResource,
ResourceLimits currentResourceLimits)
public void incUsedResource(String nodeLabel, org.apache.hadoop.yarn.api.records.Resource resourceToInc, SchedulerApplicationAttempt application)
CSQueueincUsedResource in interface CSQueueincUsedResource in class AbstractCSQueuenodeLabel - node label.resourceToInc - resource.application - application.public void decUsedResource(String nodeLabel, org.apache.hadoop.yarn.api.records.Resource resourceToDec, SchedulerApplicationAttempt application)
CSQueuedecUsedResource in interface CSQueuedecUsedResource in class AbstractCSQueuenodeLabel - node label.resourceToDec - resource.application - application.public void incAMUsedResource(String nodeLabel, org.apache.hadoop.yarn.api.records.Resource resourceToInc, SchedulerApplicationAttempt application)
public void decAMUsedResource(String nodeLabel, org.apache.hadoop.yarn.api.records.Resource resourceToDec, SchedulerApplicationAttempt application)
public void recoverContainer(org.apache.hadoop.yarn.api.records.Resource clusterResource,
SchedulerApplicationAttempt attempt,
RMContainer rmContainer)
QueueclusterResource - the resource of the clusterattempt - the application for which the container was allocatedrmContainer - the container that was recovered.public Collection<FiCaSchedulerApp> getPendingApplications()
public Collection<FiCaSchedulerApp> getApplications()
public Collection<FiCaSchedulerApp> getAllApplications()
public org.apache.hadoop.yarn.api.records.Resource getTotalPendingResourcesConsideringUserLimit(org.apache.hadoop.yarn.api.records.Resource clusterResources,
String partition,
boolean deductReservedFromPending)
clusterResources - clusterResourcepartition - node partitiondeductReservedFromPending - When a container is reserved in CS,
pending resource will not be deducted.
This could lead to double accounting when
doing preemption:
In normal cases, we should deduct reserved
resource from pending to avoid
excessive preemption.public void collectSchedulerApplications(Collection<org.apache.hadoop.yarn.api.records.ApplicationAttemptId> apps)
CSQueueapps - the collection to add the applications topublic void attachContainer(org.apache.hadoop.yarn.api.records.Resource clusterResource,
FiCaSchedulerApp application,
RMContainer rmContainer)
CSQueueclusterResource - the current cluster resourceapplication - application to which the container was assignedrmContainer - the container to attachpublic void detachContainer(org.apache.hadoop.yarn.api.records.Resource clusterResource,
FiCaSchedulerApp application,
RMContainer rmContainer)
CSQueueclusterResource - the current cluster resourceapplication - application to which the container was assignedrmContainer - the container to detachpublic Map<String,TreeSet<RMContainer>> getIgnoreExclusivityRMContainers()
public void setCapacity(float capacity)
public void setCapacity(String nodeLabel, float capacity)
public void setAbsoluteCapacity(float absoluteCapacity)
public void setAbsoluteCapacity(String nodeLabel, float absoluteCapacity)
public void setMaxApplicationsPerUser(int maxApplicationsPerUser)
public void setMaxApplications(int maxApplications)
public void setMaxAMResourcePerQueuePercent(float maxAMResourcePerQueuePercent)
public OrderingPolicy<FiCaSchedulerApp> getOrderingPolicy()
public org.apache.hadoop.yarn.api.records.Priority getDefaultApplicationPriority()
QueuegetDefaultApplicationPriority in interface QueuegetDefaultApplicationPriority in class AbstractCSQueuepublic void updateApplicationPriority(SchedulerApplication<FiCaSchedulerApp> app, org.apache.hadoop.yarn.api.records.Priority newAppPriority)
public OrderingPolicy<FiCaSchedulerApp> getPendingAppsOrderingPolicy()
public void stopQueue()
SchedulerQueuepublic boolean isEligibleForAutoDeletion()
AbstractCSQueueisEligibleForAutoDeletion in class AbstractCSQueueCopyright © 2008–2024 Apache Software Foundation. All rights reserved.