ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-13115) BE: Call to filter 100 hosts by alerts takes 25s on 800 node cluster
Date Wed, 16 Sep 2015 23:13:45 GMT

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

Hudson commented on AMBARI-13115:
---------------------------------

SUCCESS: Integrated in Ambari-trunk-Commit #3452 (See [https://builds.apache.org/job/Ambari-trunk-Commit/3452/])
AMBARI-13115. BE: Call to filter 100 hosts by alerts takes 25s on 800 node cluster (srimanth)
(sgunturi: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=44effc56526e7afe8f9ca8fc2a80c65c844f8d30)
* ambari-server/src/test/java/org/apache/ambari/server/api/query/QueryImplTest.java
* ambari-server/src/test/java/org/apache/ambari/server/controller/internal/ClusterControllerImplTest.java
* ambari-server/src/main/java/org/apache/ambari/server/api/query/QueryImpl.java


> BE: Call to filter 100 hosts by alerts takes 25s on 800 node cluster
> --------------------------------------------------------------------
>
>                 Key: AMBARI-13115
>                 URL: https://issues.apache.org/jira/browse/AMBARI-13115
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.1.0
>            Reporter: Srimanth Gunturi
>            Assignee: Srimanth Gunturi
>             Fix For: 2.1.2
>
>         Attachments: AMBARI-13115.patch
>
>
> UI has a filter to show hosts having alerts. This call takes 25 to complete.
> {code}
> POST http://gsperfb-1:8080/api/v1/clusters/MuonBlue/hosts?fields=Hosts/rack_info,Hosts/host_name,Hosts/maintenance_state,Hosts/public_host_name,Hosts/cpu_count,Hosts/ph_cpu_count,alerts_summary,Hosts/host_status,Hosts/last_heartbeat_time,Hosts/ip,host_components/HostRoles/state,host_components/HostRoles/maintenance_state,host_components/HostRoles/stale_configs,host_components/HostRoles/service_name,host_components/HostRoles/desired_admin_state,Hosts/total_mem,stack_versions/HostStackVersions,stack_versions/repository_versions/RepositoryVersions/repository_version,stack_versions/repository_versions/RepositoryVersions/id,stack_versions/repository_versions/RepositoryVersions/display_name&minimal_response=true&page_size=100&from=0&sortBy=Hosts/host_name.asc
> {code}
> {code}
> {
>   "RequestInfo": {
>     "query": "page_size=100&from=0&alerts_summary/CRITICAL>0|alerts_summary/WARNING>0"
>   }
> }
> {code}
> Or the following GET call has same result:
> {code}
> http://c6406:8080/api/v1/clusters/c1k/hosts?fields=Hosts/rack_info,Hosts/host_name,Hosts/maintenance_state,Hosts/public_host_name,Hosts/cpu_count,Hosts/ph_cpu_count,alerts_summary,Hosts/host_status,Hosts/last_heartbeat_time,Hosts/ip,host_components/HostRoles/state,host_components/HostRoles/maintenance_state,host_components/HostRoles/stale_configs,host_components/HostRoles/service_name,host_components/HostRoles/desired_admin_state,Hosts/total_mem,stack_versions/HostStackVersions,stack_versions/repository_versions/RepositoryVersions/repository_version,stack_versions/repository_versions/RepositoryVersions/id,stack_versions/repository_versions/RepositoryVersions/display_name&minimal_response=true&page_size=100&from=0&sortBy=Hosts/cpu_count.desc
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message