瀏覽代碼

HADOOP-1868 Make default configuration more responsive

git-svn-id: https://svn.apache.org/repos/asf/lucene/hadoop/trunk@574404 13f79535-47bb-0310-9956-ffa450edef68
Michael Stack 18 年之前
父節點
當前提交
30ac29c0cc

+ 1 - 0
src/contrib/hbase/CHANGES.txt

@@ -54,6 +54,7 @@ Trunk (unreleased changes)
                 (Izaak Rubin via Stack) 
                 (Izaak Rubin via Stack) 
     HADOOP-1835 Updated Documentation for HBase setup/installation
     HADOOP-1835 Updated Documentation for HBase setup/installation
                 (Izaak Rubin via Stack)
                 (Izaak Rubin via Stack)
+    HADOOP-1868 Make default configuration more responsive
 
 
 
 
 Below are the list of changes before 2007-08-18
 Below are the list of changes before 2007-08-18

+ 2 - 2
src/contrib/hbase/conf/hbase-default.xml

@@ -50,7 +50,7 @@
   </property>
   </property>
   <property>
   <property>
     <name>hbase.client.pause</name>
     <name>hbase.client.pause</name>
-    <value>30000</value>
+    <value>10000</value>
     <description>General client pause value.  Used mostly as value to wait
     <description>General client pause value.  Used mostly as value to wait
     before running a retry of a failed get, region lookup, etc.</description>
     before running a retry of a failed get, region lookup, etc.</description>
   </property>
   </property>
@@ -102,7 +102,7 @@
   </property>
   </property>
   <property>
   <property>
     <name>hbase.regionserver.msginterval</name>
     <name>hbase.regionserver.msginterval</name>
-    <value>10000</value>
+    <value>3000</value>
     <description>Interval between messages from the RegionServer to HMaster
     <description>Interval between messages from the RegionServer to HMaster
     in milliseconds.  Default is 15. Set this value low if you want unit
     in milliseconds.  Default is 15. Set this value low if you want unit
     tests to be responsive.
     tests to be responsive.

+ 1 - 1
src/contrib/hbase/src/java/org/apache/hadoop/hbase/HRegionServer.java

@@ -448,7 +448,7 @@ public class HRegionServer implements HConstants, HRegionInterface, Runnable {
     this.numRetries =  conf.getInt("hbase.client.retries.number", 2);
     this.numRetries =  conf.getInt("hbase.client.retries.number", 2);
     this.threadWakeFrequency = conf.getLong(THREAD_WAKE_FREQUENCY, 10 * 1000);
     this.threadWakeFrequency = conf.getLong(THREAD_WAKE_FREQUENCY, 10 * 1000);
     this.msgInterval = conf.getLong("hbase.regionserver.msginterval",
     this.msgInterval = conf.getLong("hbase.regionserver.msginterval",
-      15 * 1000);
+      3 * 1000);
     this.splitOrCompactCheckFrequency =
     this.splitOrCompactCheckFrequency =
       conf.getLong("hbase.regionserver.thread.splitcompactcheckfrequency",
       conf.getLong("hbase.regionserver.thread.splitcompactcheckfrequency",
       30 * 1000);
       30 * 1000);

+ 1 - 1
src/contrib/hbase/src/java/org/apache/hadoop/hbase/HTable.java

@@ -75,7 +75,7 @@ public class HTable implements HConstants {
     closed = true;
     closed = true;
     this.connection = HConnectionManager.getConnection(conf);
     this.connection = HConnectionManager.getConnection(conf);
     this.tableName = tableName;
     this.tableName = tableName;
-    this.pause = conf.getLong("hbase.client.pause", 30 * 1000);
+    this.pause = conf.getLong("hbase.client.pause", 10 * 1000);
     this.numRetries = conf.getInt("hbase.client.retries.number", 5);
     this.numRetries = conf.getInt("hbase.client.retries.number", 5);
     this.rand = new Random();
     this.rand = new Random();
     tableServers = connection.getTableServers(tableName);
     tableServers = connection.getTableServers(tableName);