Zhijie Shen commented on YARN-2385:

bq. May be two separate apis (getRunningAppsInQueue, getPendingAppsInQueue) 
with common behavior across CS/Fair could be a better approach.

+1 for getRunningAppsInQueue + getPendingAppsInQueue, which sounds more 
flexible to get each individual metric than a sum.

Previously, getAppsInQueue is used for getQueueInfo and getApplications. In the 
former use case, we can replace it with  getRunningAppsInQueue + 
getPendingAppsInQueue, while in the latter one, it's not accurate enough to 
only include the apps inside the queue, but it's a separate issue.

> Adding support for listing all applications in a queue
> ------------------------------------------------------
>                 Key: YARN-2385
>                 URL: https://issues.apache.org/jira/browse/YARN-2385
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>          Components: capacityscheduler, fairscheduler
>            Reporter: Subramaniam Venkatraman Krishnan
>            Assignee: Karthik Kambatla
>              Labels: abstractyarnscheduler
> This JIRA proposes adding a method in AbstractYarnScheduler to get all the 
> pending/active applications. Fair scheduler already supports moving a single 
> application from one queue to another. Support for the same is being added to 
> Capacity Scheduler as part of YARN-2378 and YARN-2248. So with the addition 
> of this method, we can transparently add support for moving all applications 
> from source queue to target queue and draining a queue, i.e. killing all 
> applications in a queue as proposed by YARN-2389

This message was sent by Atlassian JIRA

Reply via email to