You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Andrii Tkach (JIRA)" <ji...@apache.org> on 2018/04/02 10:25:00 UTC

[jira] [Commented] (AMBARI-23393) Ambari Requests Too Much Data From Hosts When Logging In

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

Andrii Tkach commented on AMBARI-23393:
---------------------------------------

committed to trunk

> 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)