Return-Path: X-Original-To: apmail-ambari-dev-archive@www.apache.org Delivered-To: apmail-ambari-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 83DD117B18 for ; Thu, 10 Sep 2015 01:13:46 +0000 (UTC) Received: (qmail 41151 invoked by uid 500); 10 Sep 2015 01:13:46 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 41118 invoked by uid 500); 10 Sep 2015 01:13:46 -0000 Mailing-List: contact dev-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list dev@ambari.apache.org Received: (qmail 41104 invoked by uid 99); 10 Sep 2015 01:13:46 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Sep 2015 01:13:46 +0000 Date: Thu, 10 Sep 2015 01:13:46 +0000 (UTC) From: "Hudson (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AMBARI-13035) BE / Hosts Page Performance: "alerts_summary" takes too long to load MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMBARI-13035?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14737942#comment-14737942 ] Hudson commented on AMBARI-13035: --------------------------------- FAILURE: Integrated in Ambari-branch-2.1 #503 (See [https://builds.apache.org/job/Ambari-branch-2.1/503/]) AMBARI-13035. BE / Hosts Page Performance: alerts_summary takes too long to load (srimanth) (sgunturi: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=34180fb27851df7d84e682877ef2291ae452b57d) * ambari-server/src/main/java/org/apache/ambari/server/controller/internal/AlertSummaryPropertyProvider.java * ambari-server/src/test/java/org/apache/ambari/server/orm/dao/AlertsDAOTest.java * ambari-server/src/main/java/org/apache/ambari/server/orm/dao/AlertsDAO.java * ambari-server/src/main/java/org/apache/ambari/server/orm/dao/HostAlertSummaryDTO.java > BE / Hosts Page Performance: "alerts_summary" takes too long to load > -------------------------------------------------------------------- > > Key: AMBARI-13035 > URL: https://issues.apache.org/jira/browse/AMBARI-13035 > Project: Ambari > Issue Type: Bug > Components: ambari-server > Affects Versions: 2.1.1 > Reporter: Srimanth Gunturi > Assignee: Srimanth Gunturi > Fix For: 2.1.2 > > Attachments: AMBARI-13035.patch > > > http://c6401.ambari.apache.org:8080/api/v1/clusters/MuonBlue/hosts?fields=alerts_summary > is taking almost 10s every time to load. > Here is a typical request for hosts update > {code} > http://c6401.ambari.apache.org: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&_=1439416717498 > {code} > By removing "alert_summary", it will take only 1/10 of the time to load. -- This message was sent by Atlassian JIRA (v6.3.4#6332)