[ 
https://issues.apache.org/jira/browse/YARN-9578?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16854553#comment-16854553
 ] 

Tao Yang edited comment on YARN-9578 at 6/3/19 12:49 PM:
---------------------------------------------------------

For better serving to users, we should support more options for app activities 
REST API:
 # limit - set a limit of the result, user often need only 1 or a few latest 
activities, this option can lower the cost from both server and client sides in 
some scenarios.
 # actions - the required actions of app activities including UPDATE and GET, 
some scenarios such as app attempt UI would like to refresh and show the latest 
activities, perhaps will trigger updating at first then get latest activities 
after a while, customized actions can drop unnecessary actions to cut the cost.
 # summarize - whether app activities in multiple scheduling processes need to 
be summarized, it's useful when multi-node disabled since only one node can be 
considered in a single scheduling process, enable this may give us a summary 
with diagnostics on all nodes for better debugging.


was (Author: tao yang):
For better serving to users, we should support more options for app activities 
REST API:
 # limit - set a limit of the result, user often need only 1 or a few latest 
activities, this option can lower the cost from both server and client sides in 
some scenarios.
 # actions - the required actions of app activities including UPDATE and GET, 
some scenarios such as app attempt UI would like to refresh and show the latest 
activities, perhaps will trigger updating at first then get latest activities 
after a while, customized actions can drop unnecessary actions to cut the cost.
 # summarize - whether app activities in multiple scheduling processes need to 
be summarized, it's useful when multi-node disabled since only one node can be 
considered in a single scheduling process. 

> Add limit/actions/summarize options for app activities REST API
> ---------------------------------------------------------------
>
>                 Key: YARN-9578
>                 URL: https://issues.apache.org/jira/browse/YARN-9578
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>          Components: capacityscheduler
>            Reporter: Tao Yang
>            Assignee: Tao Yang
>            Priority: Major
>         Attachments: YARN-9578.001.patch, YARN-9578.002.patch, 
> YARN-9578.003.patch
>
>
> Currently all completed activities of specified application in cache will be 
> returned for application activities REST API. Most results may be redundant 
> in some scenarios which only need a few latest results, for example, perhaps 
> only one result is needed to be shown on UI for debugging.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to