You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Tom Beerbower (JIRA)" <ji...@apache.org> on 2013/10/24 00:48:42 UTC

[jira] [Created] (AMBARI-3583) Requests API should rollup tasks information

Tom Beerbower created AMBARI-3583:
-------------------------------------

             Summary: Requests API should rollup tasks information
                 Key: AMBARI-3583
                 URL: https://issues.apache.org/jira/browse/AMBARI-3583
             Project: Ambari
          Issue Type: Bug
            Reporter: Tom Beerbower
            Assignee: Tom Beerbower


Ambari UI shows the number of background-operations. Clicking on it launches a dialog showing the progress/status of each request. We keep polling every 6s at the following URL:
{code}
http://server:8080/api/v1/clusters/ga/requests?to=end&page_size=10&fields=*,tasks/Tasks/*
{code}

On large clusters this is really really huge if you restarted services multiple times. All of this just to show the number of operations in progress, and the status of each request.

We need a rollup of tasks data into the request itself, so that we dont load the tasks (the heavy part) till details of a request are needed. So for each request we need 
* Progress of the request: This takes into account the progress of various tasks. 100% means request is completed. 
* State of the request: Depending on success/warn/failure of tasks, this will help UI show a red/green/yellow for the entire request.

Our initial call will be to
{code}
http://server:8080/api/v1/clusters/ga/requests?to=end&page_size=10
{code}
Once a user drills into a request, we will be requesting entire details for it.
{code}
http://server:8080/api/v1/clusters/ga/requests/1?fields=tasks/Tasks/*
{code}



--
This message was sent by Atlassian JIRA
(v6.1#6144)