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 C154810E7F for ; Tue, 5 Nov 2013 14:37:28 +0000 (UTC) Received: (qmail 87104 invoked by uid 500); 5 Nov 2013 14:37:22 -0000 Delivered-To: apmail-incubator-ambari-dev-archive@incubator.apache.org Received: (qmail 87064 invoked by uid 500); 5 Nov 2013 14:37:20 -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 87043 invoked by uid 99); 5 Nov 2013 14:37:18 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Nov 2013 14:37:18 +0000 Date: Tue, 5 Nov 2013 14:37:18 +0000 (UTC) From: "Andrii Tkach (JIRA)" To: ambari-dev@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AMBARI-3693) [perf] Hosts UI should not load host_components unless editing a host 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-3693?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andrii Tkach updated AMBARI-3693: --------------------------------- Attachment: AMBARI-3693_2.patch > [perf] Hosts UI should not load host_components unless editing a host > --------------------------------------------------------------------- > > Key: AMBARI-3693 > URL: https://issues.apache.org/jira/browse/AMBARI-3693 > Project: Ambari > Issue Type: Bug > Components: client > Affects Versions: 1.4.1 > Reporter: Andrii Tkach > Assignee: Andrii Tkach > Fix For: 1.4.2 > > Attachments: AMBARI-3693.patch, AMBARI-3693_2.patch > > > Ambari UI when getting hosts, also gets all the host-components. This is needed to calculate state of each host, when filtering by components on Hosts page, and when editing a host. > The call UI makes is > {code} > http://server:8080/api/v1/clusters/ga/hosts?fields=Hosts/host_name,Hosts/public_host_name,Hosts/disk_info,Hosts/cpu_count,Hosts/total_mem,Hosts/host_status,Hosts/last_heartbeat_time,Hosts/os_arch,Hosts/os_type,Hosts/ip,host_components,metrics/disk,metrics/load/load_one > {code} > UI should get away from loading all host-components where possible. > * Ambari load > ** UI should not ask for all host-components > ** Hosts should have their {{state}} flag reflect rolled-up status of host-components > * Hosts page > ** UI has no option but to load basic information on all host_components. But only when you enter this page. > * Individual host editing > ** Load host_components for that host (if not loaded) > UI might need a wrapper/utility class where we do not directly ask Ember for host_components, but rather maintain a cache and load only when necessary. This will allow the flexibility required for above varying cases. > Also API needs to provide the rolled up {{state}} flag. -- This message was sent by Atlassian JIRA (v6.1#6144)