You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by yu...@apache.org on 2013/06/19 02:02:43 UTC
svn commit: r1494396 - in /incubator/ambari/trunk/ambari-web/app/views/main:
dashboard.js dashboard/widgets/hbase_master_heap.js
dashboard/widgets/hdfs_capacity.js dashboard/widgets/jobtracker_heap.js
dashboard/widgets/namenode_heap.js
Author: yusaku
Date: Wed Jun 19 00:02:42 2013
New Revision: 1494396
URL: http://svn.apache.org/r1494396
Log:
AMBARI-2422. Update thresholds for widgets shown on the Dashboard to more sensible values. (Xi Wang via yusaku)
Modified:
incubator/ambari/trunk/ambari-web/app/views/main/dashboard.js
incubator/ambari/trunk/ambari-web/app/views/main/dashboard/widgets/hbase_master_heap.js
incubator/ambari/trunk/ambari-web/app/views/main/dashboard/widgets/hdfs_capacity.js
incubator/ambari/trunk/ambari-web/app/views/main/dashboard/widgets/jobtracker_heap.js
incubator/ambari/trunk/ambari-web/app/views/main/dashboard/widgets/namenode_heap.js
Modified: incubator/ambari/trunk/ambari-web/app/views/main/dashboard.js
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/views/main/dashboard.js?rev=1494396&r1=1494395&r2=1494396&view=diff
==============================================================================
--- incubator/ambari/trunk/ambari-web/app/views/main/dashboard.js (original)
+++ incubator/ambari/trunk/ambari-web/app/views/main/dashboard.js Wed Jun 19 00:02:42 2013
@@ -150,7 +150,7 @@ App.MainDashboardView = Em.View.extend({
var hidden = value.hidden;
var threshold = value.threshold;
- if(version == 'classic'){
+ if (version == 'classic') {
this.set('isClassicDashboard', true);
}else if(version == 'new'){
this.set('isClassicDashboard', false);
@@ -242,9 +242,9 @@ App.MainDashboardView = Em.View.extend({
'6', '7', '8', '9', '10', '18', '16',//map reduce
'20', '21', '19', '23' //hbase
], // all in order
- hidden:[['22','Region In Transition']],
- threshold:{1: [40,70], 2: [40,70], 3: [40,70], 4: [40,70], 5: [0.5, 2], 6: [40,70], 7: [40,70], 8: [40,70], 9: [0.5, 2],
- 10: [], 11: [], 12: [], 13: [], 14: [], 15: [], 16: [], 17: [], 18: [], 19: [], 20: [40,70], 21: [10,19.2], 22: [3, 10], 23: []} // id:[thresh1, thresh2]
+ hidden: [['22','Region In Transition']],
+ threshold: {1: [80, 90], 2: [85, 95], 3: [90, 95], 4: [80, 90], 5: [1000, 3000], 6: [70, 90], 7: [90, 95], 8: [50, 75], 9: [30000, 120000],
+ 10: [], 11: [], 12: [], 13: [], 14: [], 15: [], 16: [], 17: [], 18: [], 19: [], 20: [70, 90], 21: [10, 19.2], 22: [3, 10], 23: []} // id:[thresh1, thresh2]
}),
persistKey: function () {
var loginName = App.router.get('loginName');
Modified: incubator/ambari/trunk/ambari-web/app/views/main/dashboard/widgets/hbase_master_heap.js
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/views/main/dashboard/widgets/hbase_master_heap.js?rev=1494396&r1=1494395&r2=1494396&view=diff
==============================================================================
--- incubator/ambari/trunk/ambari-web/app/views/main/dashboard/widgets/hbase_master_heap.js (original)
+++ incubator/ambari/trunk/ambari-web/app/views/main/dashboard/widgets/hbase_master_heap.js Wed Jun 19 00:02:42 2013
@@ -107,7 +107,7 @@ App.HBaseMasterHeapPieChartView = App.Da
}
// draw new svg
this.appendSvg();
- }.observes('model.heapMemoryUsed', 'model.heapMemoryMax', 'this.thresh1', 'this.thresh2')
+ }.observes('this.data', 'this.thresh1', 'this.thresh2')
})
Modified: incubator/ambari/trunk/ambari-web/app/views/main/dashboard/widgets/hdfs_capacity.js
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/views/main/dashboard/widgets/hdfs_capacity.js?rev=1494396&r1=1494395&r2=1494396&view=diff
==============================================================================
--- incubator/ambari/trunk/ambari-web/app/views/main/dashboard/widgets/hdfs_capacity.js (original)
+++ incubator/ambari/trunk/ambari-web/app/views/main/dashboard/widgets/hdfs_capacity.js Wed Jun 19 00:02:42 2013
@@ -121,7 +121,7 @@ App.NameNodeCapacityPieChartView = App.D
// draw new svg
this.appendSvg();
- }.observes('model.capacityUsed', 'model.capacityTotal', 'this.thresh1', 'this.thresh2')
+ }.observes('this.data', 'this.thresh1', 'this.thresh2')
})
})
Modified: incubator/ambari/trunk/ambari-web/app/views/main/dashboard/widgets/jobtracker_heap.js
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/views/main/dashboard/widgets/jobtracker_heap.js?rev=1494396&r1=1494395&r2=1494396&view=diff
==============================================================================
--- incubator/ambari/trunk/ambari-web/app/views/main/dashboard/widgets/jobtracker_heap.js (original)
+++ incubator/ambari/trunk/ambari-web/app/views/main/dashboard/widgets/jobtracker_heap.js Wed Jun 19 00:02:42 2013
@@ -58,7 +58,7 @@ App.JobTrackerHeapPieChartView = App.Das
innerR: 25,
existCenterText: true,
- centerTextColor: function (){
+ centerTextColor: function () {
return this.get('contentColor');
}.property('contentColor'),
@@ -105,7 +105,7 @@ App.JobTrackerHeapPieChartView = App.Das
// draw new svg
this.appendSvg();
- }.observes('model.jobTrackerHeapUsed', 'model.jobTrackerHeapMax', 'this.thresh1', 'this.thresh2')
+ }.observes('this.data', 'this.thresh1', 'this.thresh2')
})
})
\ No newline at end of file
Modified: incubator/ambari/trunk/ambari-web/app/views/main/dashboard/widgets/namenode_heap.js
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/views/main/dashboard/widgets/namenode_heap.js?rev=1494396&r1=1494395&r2=1494396&view=diff
==============================================================================
--- incubator/ambari/trunk/ambari-web/app/views/main/dashboard/widgets/namenode_heap.js (original)
+++ incubator/ambari/trunk/ambari-web/app/views/main/dashboard/widgets/namenode_heap.js Wed Jun 19 00:02:42 2013
@@ -107,7 +107,7 @@ App.NameNodeHeapPieChartView = App.Dashb
}
// draw new svg
this.appendSvg();
- }.observes('model.jvmMemoryHeapUsed', 'model.jvmMemoryHeapCommitted', 'this.thresh1', 'this.thresh2')
+ }.observes('this.data', 'this.thresh1', 'this.thresh2')
})
})