incubator-ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From srima...@apache.org
Subject git commit: AMBARI-3719. YARN default number of containers calculation skewed towards heavier resources. (srimanth)
Date Thu, 07 Nov 2013 22:32:00 GMT
Updated Branches:
  refs/heads/trunk d58846eab -> 4f6bacdfd


AMBARI-3719. YARN default number of containers calculation skewed towards heavier resources.
(srimanth)


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

Branch: refs/heads/trunk
Commit: 4f6bacdfd3fecb33f43d8a753b2473553f0f37cc
Parents: d58846e
Author: Srimanth Gunturi <sgunturi@hortonworks.com>
Authored: Thu Nov 7 14:29:45 2013 -0800
Committer: Srimanth Gunturi <sgunturi@hortonworks.com>
Committed: Thu Nov 7 14:31:08 2013 -0800

----------------------------------------------------------------------
 .../app/utils/configs/defaults_providers/yarn_defaults_provider.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/4f6bacdf/ambari-web/app/utils/configs/defaults_providers/yarn_defaults_provider.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/utils/configs/defaults_providers/yarn_defaults_provider.js b/ambari-web/app/utils/configs/defaults_providers/yarn_defaults_provider.js
index a263602..7a37f0b 100644
--- a/ambari-web/app/utils/configs/defaults_providers/yarn_defaults_provider.js
+++ b/ambari-web/app/utils/configs/defaults_providers/yarn_defaults_provider.js
@@ -106,7 +106,7 @@ App.YARNDefaultsProvider = App.DefaultsProvider.create({
     }
     ram *= this.get('GB');
     ram /= containerSize;
-    return Math.round(Math.max(cpu, Math.min(disk, ram)));
+    return Math.round(Math.min(cpu, Math.min(disk, ram)));
   }.property('clusterData.cpu', 'clusterData.ram', 'clusterData.hBaseInstalled', 'clusterData.disk',
'reservedRam', 'hBaseRam', 'recommendedMinimumContainerSize'),
 
   /**


Mime
View raw message