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-3714) [perf] UI should only request data from master host-components
Date Thu, 07 Nov 2013 15:55:17 GMT
Andrii Tkach created AMBARI-3714:
------------------------------------

             Summary: [perf] UI should only request data from master host-components
                 Key: AMBARI-3714
                 URL: https://issues.apache.org/jira/browse/AMBARI-3714
             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-3714.patch

When Ambari UI loads, we get services installed. To get information about the services, we
ask for *all* host_components (master, worker, client, etc.) 
{code}
http://server:8080/api/v1/clusters/ga/services?fields=components/ServiceComponentInfo,components/host_components,components/host_components/HostRoles,components/host_components/metrics/jvm/memHeapUsedM,components/host_components/metrics/jvm/memHeapCommittedM,components/host_components/metrics/mapred/jobtracker/trackers_decommissioned,components/host_components/metrics/cpu/cpu_wio,components/host_components/metrics/rpc/RpcQueueTime_avg_time,components/host_components/metrics/dfs/FSNamesystem/HAState,components/host_components/metrics/dfs/FSNamesystem/CapacityUsed,components/host_components/metrics/dfs/FSNamesystem/CapacityTotal,components/host_components/metrics/dfs/FSNamesystem/CapacityRemaining,components/host_components/metrics/dfs/FSNamesystem/BlocksTotal,components/host_components/metrics/dfs/FSNamesystem/CorruptBlocks,components/host_components/metrics/dfs/FSNamesystem/MissingBlocks,components/host_components/metrics/dfs/FSNamesystem/UnderReplicatedBlocks,components/host_components/metrics/dfs/namenode/Version,components/host_components/metrics/dfs/namenode/LiveNodes,components/host_components/metrics/dfs/namenode/DeadNodes,components/host_components/metrics/dfs/namenode/DecomNodes,components/host_components/metrics/dfs/namenode/TotalFiles,components/host_components/metrics/dfs/namenode/UpgradeFinalized,components/host_components/metrics/dfs/namenode/Safemode,components/host_components/metrics/runtime/StartTime,components/host_components/metrics/flume/flume,components/host_components/metrics/yarn/Queue
{code}
However for services, only the master host-components are necessary. 

UI should only get master host-components when loading Ambari. This means multiple things
in API.
* Service status {{ServiceInfo/state}} should be accurate based on the master host-component
status
* Host-components should have a property indicating what type of host-component they are (master/worker/client/etc.).




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

Mime
View raw message