You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by av...@apache.org on 2016/02/12 19:48:25 UTC

ambari git commit: AMBARI-15030 : Fix unreasonable default heap settings for AMS HBase heapsize and xmn size (avijayan)

Repository: ambari
Updated Branches:
  refs/heads/branch-2.2 63ece7fe0 -> 28214b2da


AMBARI-15030 : Fix unreasonable default heap settings for AMS HBase heapsize and xmn size (avijayan)


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

Branch: refs/heads/branch-2.2
Commit: 28214b2da28b83c97d8d675073f319e547c8c358
Parents: 63ece7f
Author: Aravindan Vijayan <av...@hortonworks.com>
Authored: Fri Feb 12 10:26:21 2016 -0800
Committer: Aravindan Vijayan <av...@hortonworks.com>
Committed: Fri Feb 12 10:48:21 2016 -0800

----------------------------------------------------------------------
 .../AMBARI_METRICS/0.1.0/configuration/ams-hbase-env.xml       | 6 +++---
 .../main/resources/stacks/HDP/2.0.6/services/stack_advisor.py  | 2 ++
 .../src/test/python/stacks/2.2/common/test_stack_advisor.py    | 3 ++-
 3 files changed, 7 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/28214b2d/ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/configuration/ams-hbase-env.xml
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/configuration/ams-hbase-env.xml b/ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/configuration/ams-hbase-env.xml
index 5a9bcdd..6d78c14 100644
--- a/ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/configuration/ams-hbase-env.xml
+++ b/ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/configuration/ams-hbase-env.xml
@@ -41,7 +41,7 @@
   </property>
   <property>
     <name>hbase_regionserver_heapsize</name>
-    <value>512</value>
+    <value>756</value>
     <description>
         HBase RegionServer Heap Size. In embedded mode, total heap size is
         sum of master and regionserver heap sizes.
@@ -63,7 +63,7 @@
   </property>
   <property>
     <name>regionserver_xmn_size</name>
-    <value>256</value>
+    <value>128</value>
     <description>HBase RegionServer maximum value for young generation heap size.</description>
     <value-attributes>
       <type>int</type>
@@ -78,7 +78,7 @@
   </property>
   <property>
     <name>hbase_master_xmn_size</name>
-    <value>256</value>
+    <value>102</value>
     <description>
       HBase Master maximum value for young generation heap size.
     </description>

http://git-wip-us.apache.org/repos/asf/ambari/blob/28214b2d/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/stack_advisor.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/stack_advisor.py b/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/stack_advisor.py
index 2c1e394..d19e9a1 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/stack_advisor.py
+++ b/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/stack_advisor.py
@@ -572,6 +572,7 @@ class HDP206StackAdvisor(DefaultStackAdvisor):
 
     # Distributed mode heap size
     if operatingMode == "distributed":
+      hbase_heapsize = max(hbase_heapsize, 756)
       putHbaseEnvProperty("hbase_master_heapsize", "512")
       putHbaseEnvProperty("hbase_master_xmn_size", "102") #20% of 512 heap size
       putHbaseEnvProperty("hbase_regionserver_heapsize", hbase_heapsize)
@@ -579,6 +580,7 @@ class HDP206StackAdvisor(DefaultStackAdvisor):
     else:
       # Embedded mode heap size : master + regionserver
       hbase_rs_heapsize = 512
+      putHbaseEnvProperty("hbase_regionserver_heapsize", hbase_rs_heapsize)
       putHbaseEnvProperty("hbase_master_heapsize", hbase_heapsize)
       putHbaseEnvProperty("hbase_master_xmn_size", round_to_n(0.15*(hbase_heapsize+hbase_rs_heapsize),64))
 

http://git-wip-us.apache.org/repos/asf/ambari/blob/28214b2d/ambari-server/src/test/python/stacks/2.2/common/test_stack_advisor.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/test/python/stacks/2.2/common/test_stack_advisor.py b/ambari-server/src/test/python/stacks/2.2/common/test_stack_advisor.py
index 6984e0e..982ba4f 100644
--- a/ambari-server/src/test/python/stacks/2.2/common/test_stack_advisor.py
+++ b/ambari-server/src/test/python/stacks/2.2/common/test_stack_advisor.py
@@ -1986,7 +1986,8 @@ class TestHDP22StackAdvisor(TestCase):
       "ams-hbase-env": {
         "properties": {
           "hbase_master_xmn_size": "128",
-          "hbase_master_heapsize": "512"
+          "hbase_master_heapsize": "512",
+          "hbase_regionserver_heapsize": "512"
         }
       },
       "ams-env": {