Andrii Tkach created AMBARI-3622:
------------------------------------
Summary: [perf] Background operations dialog should not get all
details of requests
Key: AMBARI-3622
URL: https://issues.apache.org/jira/browse/AMBARI-3622
Project: Ambari
Issue Type: Bug
Components: client
Affects Versions: 1.4.1
Reporter: Andrii Tkach
Assignee: Andrii Tkach
Priority: Critical
Fix For: 1.4.2
In Ambari UI we keep polling for last 10 requests, and *all* details about each
request.
{code}
http://server:8080/api/v1/clusters/ga/requests?to=end&page_size=10&fields=*,tasks/Tasks/*
{code}
On a 600 node cluster if you restart all services, this will contain MBs of
data.
We do not need so much data just to show the number of operations. We need to
request API changes to provide rollup of tasks information into each request,
and use that.
The polling query should look more like:
{code}
http://server:8080/api/v1/clusters/ga/requests?to=end&page_size=10
{code}
This should provide the following about request -
* progress%
* completed (yes/no)
* state (success/warn/failure/timeout)
Users should open the background-operations dialog and see progress of requests
without making any further calls. Only when the user clicks on a request,
should another call to get all tasks information be done.
--
This message was sent by Atlassian JIRA
(v6.1#6144)