ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrii Tkach (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AMBARI-3693) [perf] Hosts UI should not load host_components unless editing a host
Date Tue, 05 Nov 2013 13:14:17 GMT
Andrii Tkach created AMBARI-3693:
------------------------------------

             Summary: [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 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)

Mime
View raw message