|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FSQueue
org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FSLeafQueue
@InterfaceAudience.Private @InterfaceStability.Unstable public class FSLeafQueue
| Field Summary |
|---|
| Fields inherited from class org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FSQueue |
|---|
parent, policy, recordFactory, scheduler |
| Constructor Summary | |
|---|---|
FSLeafQueue(String name,
FairScheduler scheduler,
FSParentQueue parent)
|
|
| Method Summary | |
|---|---|
void |
addAMResourceUsage(org.apache.hadoop.yarn.api.records.Resource amResource)
|
void |
addApp(FSAppAttempt app,
boolean runnable)
|
org.apache.hadoop.yarn.api.records.Resource |
assignContainer(FSSchedulerNode node)
Assign a container on this node if possible, and return the amount of resources assigned. |
boolean |
canRunAppAM(org.apache.hadoop.yarn.api.records.Resource amResource)
Check whether this queue can run this application master under the maxAMShare limit |
void |
collectSchedulerApplications(Collection<org.apache.hadoop.yarn.api.records.ApplicationAttemptId> apps)
Adds all applications in the queue and its subqueues to the given collection. |
ActiveUsersManager |
getActiveUsersManager()
|
org.apache.hadoop.yarn.api.records.Resource |
getAmResourceUsage()
|
List<FSQueue> |
getChildQueues()
Gets the children of this queue, if any. |
org.apache.hadoop.yarn.api.records.Resource |
getDemand()
Maximum number of resources required by this Schedulable. |
long |
getLastTimeAtFairShareThreshold()
|
long |
getLastTimeAtMinShare()
|
List<FSAppAttempt> |
getNonRunnableAppSchedulables()
|
int |
getNumRunnableApps()
Return the number of apps for which containers can be allocated. |
List<org.apache.hadoop.yarn.api.records.QueueUserACLInfo> |
getQueueUserAclInfo(org.apache.hadoop.security.UserGroupInformation user)
Get queue ACLs for given user. |
org.apache.hadoop.yarn.api.records.Resource |
getResourceUsage()
Get the aggregate amount of resources consumed by the schedulable. |
Collection<FSAppAttempt> |
getRunnableAppSchedulables()
|
RMContainer |
preemptContainer()
Preempt a container from this Schedulable if possible. |
void |
recomputeShares()
Recomputes the shares for all child queues and applications based on this queue's current share |
void |
recoverContainer(org.apache.hadoop.yarn.api.records.Resource clusterResource,
SchedulerApplicationAttempt schedulerAttempt,
RMContainer rmContainer)
Recover the state of the queue for a given container. |
boolean |
removeApp(FSAppAttempt app)
Removes the given app from this queue. |
void |
setPolicy(SchedulingPolicy policy)
|
void |
updateDemand()
Refresh the Schedulable's demand and those of its children if any. |
void |
updateStarvationStats()
Update the preemption fields for the queue, i.e. |
| Methods inherited from class org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FSQueue |
|---|
assignContainerPreCheck, getAccessibleNodeLabels, getDefaultNodeLabelExpression, getFairShare, getFairSharePreemptionThreshold, getFairSharePreemptionTimeout, getMaxShare, getMetrics, getMinShare, getMinSharePreemptionTimeout, getName, getParent, getPolicy, getPriority, getQueueInfo, getQueueName, getStartTime, getSteadyFairShare, getWeights, hasAccess, isActive, setFairShare, setFairSharePreemptionThreshold, setFairSharePreemptionTimeout, setMinSharePreemptionTimeout, setSteadyFairShare, throwPolicyDoesnotApplyException, toString, updatePreemptionVariables |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FSLeafQueue(String name,
FairScheduler scheduler,
FSParentQueue parent)
| Method Detail |
|---|
public void addApp(FSAppAttempt app,
boolean runnable)
public boolean removeApp(FSAppAttempt app)
public Collection<FSAppAttempt> getRunnableAppSchedulables()
public List<FSAppAttempt> getNonRunnableAppSchedulables()
public void collectSchedulerApplications(Collection<org.apache.hadoop.yarn.api.records.ApplicationAttemptId> apps)
FSQueue
collectSchedulerApplications in class FSQueueapps - the collection to add the applications to
public void setPolicy(SchedulingPolicy policy)
throws AllocationConfigurationException
setPolicy in class FSQueueAllocationConfigurationExceptionpublic void recomputeShares()
FSQueue
recomputeShares in class FSQueuepublic org.apache.hadoop.yarn.api.records.Resource getDemand()
Schedulable
public org.apache.hadoop.yarn.api.records.Resource getResourceUsage()
Schedulable
public org.apache.hadoop.yarn.api.records.Resource getAmResourceUsage()
public void updateDemand()
Schedulable
public org.apache.hadoop.yarn.api.records.Resource assignContainer(FSSchedulerNode node)
Schedulable
public RMContainer preemptContainer()
Schedulable
public List<FSQueue> getChildQueues()
FSQueue
getChildQueues in class FSQueuepublic List<org.apache.hadoop.yarn.api.records.QueueUserACLInfo> getQueueUserAclInfo(org.apache.hadoop.security.UserGroupInformation user)
Queueuser.
user - username
public long getLastTimeAtMinShare()
public long getLastTimeAtFairShareThreshold()
public int getNumRunnableApps()
FSQueue
getNumRunnableApps in class FSQueuepublic ActiveUsersManager getActiveUsersManager()
public boolean canRunAppAM(org.apache.hadoop.yarn.api.records.Resource amResource)
amResource -
public void addAMResourceUsage(org.apache.hadoop.yarn.api.records.Resource amResource)
public void recoverContainer(org.apache.hadoop.yarn.api.records.Resource clusterResource,
SchedulerApplicationAttempt schedulerAttempt,
RMContainer rmContainer)
Queue
clusterResource - the resource of the clusterschedulerAttempt - the application for which the container was allocatedrmContainer - the container that was recovered.public void updateStarvationStats()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||