[ 
https://issues.apache.org/jira/browse/YARN-2408?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Renan DelValle updated YARN-2408:
---------------------------------

    Attachment: YARN-2408-2.patch

New patch, includes some tests and includes new code which makes the interface 
scheduler agnostic.

> Resource Request REST API for YARN
> ----------------------------------
>
>                 Key: YARN-2408
>                 URL: https://issues.apache.org/jira/browse/YARN-2408
>             Project: Hadoop YARN
>          Issue Type: New Feature
>          Components: webapp
>            Reporter: Renan DelValle
>              Labels: features
>         Attachments: YARN-2408-2.patch, YARN-2408.patch
>
>
> I’m proposing a new REST API for YARN which exposes a snapshot of the 
> Resource Requests that exist inside of the Scheduler. My motivation behind 
> this new feature is to allow external software to monitor the amount of 
> resources being requested to gain more insightful information into cluster 
> usage than is already provided. The API can also be used by external software 
> to detect a starved application and alert the appropriate users and/or sys 
> admin so that the problem may be remedied.
> Here is the proposed API:
> {code:xml}
> <resourceRequests>
>   <MB>96256</MB>
>   <VCores>94</VCores>
>   <appMaster>
>     <applicationId>application_</applicationId>
>     <applicationAttemptId>appattempt_</applicationAttemptId>
>     <queueName>default</queueName>
>     <totalPendingMB>96256</totalPendingMB>
>     <totalPendingVCores>94</totalPendingVCores>
>     <numResourceRequests>3</numResourceRequests>
>     <resourceRequests>
>       <request>
>         <MB>1024</MB>
>         <VCores>1</VCores>
>         <resourceName>/default-rack</resourceName>
>         <numContainers>94</numContainers>
>         <relaxLocality>true</relaxLocality>
>         <priority>20</priority>
>       </request>
>       <request>
>         <MB>1024</MB>
>         <VCores>1</VCores>
>         <resourceName>*</resourceName>
>         <numContainers>94</numContainers>
>         <relaxLocality>true</relaxLocality>
>         <priority>20</priority>
>       </request>
>       <request>
>         <MB>1024</MB>
>         <VCores>1</VCores>
>         <resourceName>master</resourceName>
>         <numContainers>94</numContainers>
>         <relaxLocality>true</relaxLocality>
>         <priority>20</priority>
>       </request>
>     </resourceRequests>
>   </appMaster>
> </resourceRequests>
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to