Browse Source

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 năm trước cách đây
mục cha
commit
30ac29c0cc

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

@@ -54,6 +54,7 @@ Trunk (unreleased changes)
                 (Izaak Rubin via Stack) 
     HADOOP-1835 Updated Documentation for HBase setup/installation
                 (Izaak Rubin via Stack)
+    HADOOP-1868 Make default configuration more responsive
 
 
 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>
     <name>hbase.client.pause</name>
-    <value>30000</value>
+    <value>10000</value>
     <description>General client pause value.  Used mostly as value to wait
     before running a retry of a failed get, region lookup, etc.</description>
   </property>
@@ -102,7 +102,7 @@
   </property>
   <property>
     <name>hbase.regionserver.msginterval</name>
-    <value>10000</value>
+    <value>3000</value>
     <description>Interval between messages from the RegionServer to HMaster
     in milliseconds.  Default is 15. Set this value low if you want unit
     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.threadWakeFrequency = conf.getLong(THREAD_WAKE_FREQUENCY, 10 * 1000);
     this.msgInterval = conf.getLong("hbase.regionserver.msginterval",
-      15 * 1000);
+      3 * 1000);
     this.splitOrCompactCheckFrequency =
       conf.getLong("hbase.regionserver.thread.splitcompactcheckfrequency",
       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;
     this.connection = HConnectionManager.getConnection(conf);
     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.rand = new Random();
     tableServers = connection.getTableServers(tableName);