ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nc...@apache.org
Subject [16/28] ambari git commit: AMBARI-20277. "Ambari Server Performance" alert gets triggered repeatedly (GET cluster API call taking more than 10 seconds). (mpapirkovskyy)
Date Fri, 03 Mar 2017 18:04:03 GMT
AMBARI-20277. "Ambari Server Performance" alert gets triggered repeatedly (GET cluster API
call taking more than 10 seconds). (mpapirkovskyy)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/59504528
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/59504528
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/59504528

Branch: refs/heads/branch-feature-AMBARI-12556
Commit: 59504528b771932f6008be57cc6c74f772d52be7
Parents: b624ed6
Author: Myroslav Papirkovskyi <mpapyrkovskyy@hortonworks.com>
Authored: Thu Mar 2 21:31:53 2017 +0200
Committer: Myroslav Papirkovskyi <mpapyrkovskyy@hortonworks.com>
Committed: Fri Mar 3 15:23:47 2017 +0200

----------------------------------------------------------------------
 .../ambari/server/alerts/AmbariPerformanceRunnable.java  | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/59504528/ambari-server/src/main/java/org/apache/ambari/server/alerts/AmbariPerformanceRunnable.java
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/java/org/apache/ambari/server/alerts/AmbariPerformanceRunnable.java
b/ambari-server/src/main/java/org/apache/ambari/server/alerts/AmbariPerformanceRunnable.java
index bbb583b..11e87d0 100644
--- a/ambari-server/src/main/java/org/apache/ambari/server/alerts/AmbariPerformanceRunnable.java
+++ b/ambari-server/src/main/java/org/apache/ambari/server/alerts/AmbariPerformanceRunnable.java
@@ -29,7 +29,7 @@ import org.apache.ambari.server.actionmanager.ActionManager;
 import org.apache.ambari.server.actionmanager.RequestStatus;
 import org.apache.ambari.server.api.query.Query;
 import org.apache.ambari.server.api.query.QueryImpl;
-import org.apache.ambari.server.api.query.render.DefaultRenderer;
+import org.apache.ambari.server.api.query.render.MinimalRenderer;
 import org.apache.ambari.server.api.resources.ClusterResourceDefinition;
 import org.apache.ambari.server.api.services.BaseRequest;
 import org.apache.ambari.server.controller.spi.ClusterController;
@@ -162,7 +162,14 @@ public class AmbariPerformanceRunnable extends AlertRunnable {
 
         ClusterController clusterController = ClusterControllerHelper.getClusterController();
         Query query = new QueryImpl(mapIds, new ClusterResourceDefinition(), clusterController);
-        query.setRenderer(new DefaultRenderer());
+        query.setRenderer(new MinimalRenderer());
+        query.addProperty("Clusters/desired_configs", null);
+        query.addProperty("Clusters/credential_store_properties", null);
+        query.addProperty("Clusters/desired_service_config_versions", null);
+        query.addProperty("Clusters/health_report", null);
+        query.addProperty("Clusters/total_hosts", null);
+        query.addProperty("alerts_summary", null);
+        query.addProperty("alerts_summary_hosts", null);
         query.execute();
       }
     };


Mime
View raw message