[ 
https://issues.apache.org/jira/browse/AMBARI-23393?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16422130#comment-16422130
 ] 

Hudson commented on AMBARI-23393:
---------------------------------

FAILURE: Integrated in Jenkins build Ambari-trunk-Commit #8959 (See 
[https://builds.apache.org/job/Ambari-trunk-Commit/8959/])
AMBARI-23393 Ambari Requests Too Much Data From Hosts When Logging In (github: 
[https://gitbox.apache.org/repos/asf?p=ambari.git&a=commit&h=d1e4c4d8b871bc7d19c04c12ffa7f0ee3d3931ba])
* (edit) ambari-web/app/controllers/global/update_controller.js


> Ambari Requests Too Much Data From Hosts When Logging In
> --------------------------------------------------------
>
>                 Key: AMBARI-23393
>                 URL: https://issues.apache.org/jira/browse/AMBARI-23393
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-web
>    Affects Versions: 2.7.0
>            Reporter: Andrii Tkach
>            Assignee: Andrii Tkach
>            Priority: Critical
>              Labels: pull-request-available
>             Fix For: 2.7.0
>
>          Time Spent: 1h 10m
>  Remaining Estimate: 0h
>
> When first logging into Ambari, the web client makes the following request:
> GET api/v1/clusters/<clusterName>/hosts?fields=
> - Hosts/cpu_count
> - Hosts/host_name
> - Hosts/host_status
> - Hosts/ip
> - Hosts/last_agent_env
> - Hosts/last_heartbeat_time
> - Hosts/maintenance_state
> - Hosts/ph_cpu_count
> - Hosts/public_host_name
> - Hosts/rack_info
> - Hosts/total_mem
> - alerts_summary
> - host_components/HostRoles/desired_admin_state
> - host_components/HostRoles/display_name
> - host_components/HostRoles/maintenance_state
> - host_components/HostRoles/service_name
> - host_components/HostRoles/stale_configs
> - host_components/HostRoles/state
> - host_components/logging
> - stack_versions/HostStackVersions
> - stack_versions/repository_versions/RepositoryVersions/display_name
> - stack_versions/repository_versions/RepositoryVersions/id
> - stack_versions/repository_versions/RepositoryVersions/repository_version
> In a cluster with 100 hosts, this can cause a payload of over 200MB to be 
> returned. The culprit seems to be the {{Hosts/last_agent_env}} property, 
> specifically the {{activeJavaProcs}} key. If the hosts in the cluster are 
> running a lot of Java processes, this can account for over 90% of the payload 
> (roughly 180MB). This data takes 30 or more seconds for the server to 
> serialize and stream to the socket.
> It looks like {{Hosts/last_agent_env}} isn't even needed after initially 
> provisioning a host during the host checks, so it probably can be removed.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to