Return-Path: X-Original-To: apmail-incubator-ambari-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-ambari-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 861D21040C for ; Mon, 17 Jun 2013 17:57:24 +0000 (UTC) Received: (qmail 33738 invoked by uid 500); 17 Jun 2013 17:57:24 -0000 Delivered-To: apmail-incubator-ambari-dev-archive@incubator.apache.org Received: (qmail 33578 invoked by uid 500); 17 Jun 2013 17:57:24 -0000 Mailing-List: contact ambari-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ambari-dev@incubator.apache.org Delivered-To: mailing list ambari-dev@incubator.apache.org Received: (qmail 33455 invoked by uid 99); 17 Jun 2013 17:57:21 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Jun 2013 17:57:21 +0000 Date: Mon, 17 Jun 2013 17:57:21 +0000 (UTC) From: "Tom Beerbower (JIRA)" To: ambari-dev@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AMBARI-2254) Reduce number of requests when querying for subtasks MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMBARI-2254?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tom Beerbower updated AMBARI-2254: ---------------------------------- Attachment: AMBARI-2254.patch > 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 > 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 is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira