summaryrefslogtreecommitdiff
path: root/ambari-web
diff options
context:
space:
mode:
authorYusaku Sako <yusaku@apache.org>2012-12-09 15:15:50 +0000
committerYusaku Sako <yusaku@apache.org>2012-12-09 15:15:50 +0000
commit650f165c987d3b1f59dd3f926ed08a15e3a50aa8 (patch)
tree62b7919d4bb4e807d4716c490d9f0c3ecb6d55ef /ambari-web
parentee1801a10bdf1a74de65b377a5b18efbd89a0df0 (diff)
AMBARI-1053. Dashboard page loads very slow due to hosts?fields=* API call. (Srimanth Gunturi via yusaku)
git-svn-id: https://svn.apache.org/repos/asf/incubator/ambari/branches/AMBARI-666@1419006 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'ambari-web')
-rw-r--r--ambari-web/app/controllers/global/cluster_controller.js2
-rw-r--r--ambari-web/app/controllers/global/update_controller.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/ambari-web/app/controllers/global/cluster_controller.js b/ambari-web/app/controllers/global/cluster_controller.js
index 8c0ea3892a..2672e29312 100644
--- a/ambari-web/app/controllers/global/cluster_controller.js
+++ b/ambari-web/app/controllers/global/cluster_controller.js
@@ -313,7 +313,7 @@ App.ClusterController = Em.Controller.extend({
}
var clusterUrl = this.getUrl('/data/clusters/cluster.json', '?fields=Clusters');
- var hostsUrl = this.getUrl('/data/hosts/hosts.json', '/hosts?fields=*');
+ var hostsUrl = this.getUrl('/data/hosts/hosts.json', '/hosts?fields=Hosts,host_components');
var usersUrl = App.testMode ? '/data/users/users.json' : App.apiPrefix + '/users/?fields=*';
var racksUrl = "/data/racks/racks.json";
diff --git a/ambari-web/app/controllers/global/update_controller.js b/ambari-web/app/controllers/global/update_controller.js
index 16c6d9d356..6887761bc2 100644
--- a/ambari-web/app/controllers/global/update_controller.js
+++ b/ambari-web/app/controllers/global/update_controller.js
@@ -60,7 +60,7 @@ App.UpdateController = Em.Controller.extend({
},
updateHost:function(){
- var hostsUrl = this.getUrl('/data/hosts/hosts.json', '/hosts?fields=*');
+ var hostsUrl = this.getUrl('/data/hosts/hosts.json', '/hosts?fields=Hosts,host_components,metrics/cpu,metrics/disk,metrics/load,metrics/memory');
App.HttpClient.get(hostsUrl, App.hostsMapper, {
complete:function (jqXHR, textStatus) {}
});