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

[jira] [Updated] (AMBARI-2254) Reduce number of requests when querying for subtasks

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

Mahadev konar updated AMBARI-2254:
----------------------------------

      Description: 
A query like ...

/services?fields=components/ServiceComponentInfo,components/host_components,components/host_components/HostRoles

... will create multiple requests for resources through the ClusterController. It looks like ClusterController gets called once for all the services, then once for all of the components under each service, then once for all the host_components under each component under each service. So, if there are 10 services that each have 10 components, there will be 100 calls to the ClusterController to get host components, plus 10 calls for the components and another for the services. We should be able to optimize this down to 3 calls... 1 for the services, 1 for the components and 1 for the host_components.


  was:

A query like ...

/services?fields=components/ServiceComponentInfo,components/host_components,components/host_components/HostRoles

... will create multiple requests for resources through the ClusterController. It looks like ClusterController gets called once for all the services, then once for all of the components under each service, then once for all the host_components under each component under each service. So, if there are 10 services that each have 10 components, there will be 100 calls to the ClusterController to get host components, plus 10 calls for the components and another for the services. We should be able to optimize this down to 3 calls... 1 for the services, 1 for the components and 1 for the host_components.


    Fix Version/s:     (was: 1.4.1)
                   1.5.0

> Reduce number of requests when querying for subtasks
> ----------------------------------------------------
>
>                 Key: AMBARI-2254
>                 URL: https://issues.apache.org/jira/browse/AMBARI-2254
>             Project: Ambari
>          Issue Type: Bug
>            Reporter: Tom Beerbower
>            Assignee: Tom Beerbower
>             Fix For: 1.5.0
>
>         Attachments: AMBARI-2254.patch
>
>
> A query like ...
> /services?fields=components/ServiceComponentInfo,components/host_components,components/host_components/HostRoles
> ... will create multiple requests for resources through the ClusterController. It looks like ClusterController gets called once for all the services, then once for all of the components under each service, then once for all the host_components under each component under each service. So, if there are 10 services that each have 10 components, there will be 100 calls to the ClusterController to get host components, plus 10 calls for the components and another for the services. We should be able to optimize this down to 3 calls... 1 for the services, 1 for the components and 1 for the host_components.



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