hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject hbase git commit: HBASE-14433 Set down the client executor core thread count from 256 to number of processors
Date Wed, 16 Sep 2015 05:36:14 GMT
Repository: hbase
Updated Branches:
  refs/heads/master 27a993d83 -> d2e338181


HBASE-14433 Set down the client executor core thread count from 256 to number of processors


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

Branch: refs/heads/master
Commit: d2e338181800ae3cef55ddca491901b65259dc7f
Parents: 27a993d
Author: stack <stack@apache.org>
Authored: Tue Sep 15 22:36:05 2015 -0700
Committer: stack <stack@apache.org>
Committed: Tue Sep 15 22:36:05 2015 -0700

----------------------------------------------------------------------
 .../apache/hadoop/hbase/client/ConnectionImplementation.java | 6 ++++--
 hbase-client/src/test/resources/hbase-site.xml               | 8 ++++++++
 hbase-server/src/test/resources/hbase-site.xml               | 8 ++++++++
 3 files changed, 20 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/d2e33818/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionImplementation.java
----------------------------------------------------------------------
diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionImplementation.java
b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionImplementation.java
index 2262a0f..0e8a03f 100644
--- a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionImplementation.java
+++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionImplementation.java
@@ -370,7 +370,9 @@ class ConnectionImplementation implements ClusterConnection, Closeable
{
       synchronized (this) {
         if (batchPool == null) {
           this.batchPool = getThreadPool(conf.getInt("hbase.hconnection.threads.max", 256),
-              conf.getInt("hbase.hconnection.threads.core", 256), "-shared-", null); 
+            conf.getInt("hbase.hconnection.threads.core",
+              Runtime.getRuntime().availableProcessors()),
+            "-shared-", null); 
           this.cleanupPool = true;
         }
       }
@@ -385,7 +387,7 @@ class ConnectionImplementation implements ClusterConnection, Closeable
{
       maxThreads = Runtime.getRuntime().availableProcessors() * 8;
     }
     if (coreThreads == 0) {
-      coreThreads = Runtime.getRuntime().availableProcessors() * 8;
+      coreThreads = Runtime.getRuntime().availableProcessors();
     }
     long keepAliveTime = conf.getLong("hbase.hconnection.threads.keepalivetime", 60);
     BlockingQueue<Runnable> workQueue = passedWorkQueue;

http://git-wip-us.apache.org/repos/asf/hbase/blob/d2e33818/hbase-client/src/test/resources/hbase-site.xml
----------------------------------------------------------------------
diff --git a/hbase-client/src/test/resources/hbase-site.xml b/hbase-client/src/test/resources/hbase-site.xml
index ab4d1cd..5788238 100644
--- a/hbase-client/src/test/resources/hbase-site.xml
+++ b/hbase-client/src/test/resources/hbase-site.xml
@@ -25,4 +25,12 @@
     <name>hbase.defaults.for.version.skip</name>
     <value>true</value>
   </property>
+  <property>
+    <name>hbase.hconnection.meta.lookup.threads.core</name>
+    <value>4</value>
+  </property>
+  <property>
+    <name>hbase.hconnection.threads.keepalivetime</name>
+    <value>3</value>
+  </property>
 </configuration>

http://git-wip-us.apache.org/repos/asf/hbase/blob/d2e33818/hbase-server/src/test/resources/hbase-site.xml
----------------------------------------------------------------------
diff --git a/hbase-server/src/test/resources/hbase-site.xml b/hbase-server/src/test/resources/hbase-site.xml
index 2d06c0a..1ae5435 100644
--- a/hbase-server/src/test/resources/hbase-site.xml
+++ b/hbase-server/src/test/resources/hbase-site.xml
@@ -162,4 +162,12 @@
       Enable replay sanity checks on procedure tests.
     </description>
   </property>
+  <property>
+    <name>hbase.hconnection.meta.lookup.threads.core</name>
+    <value>4</value>
+  </property>
+  <property>
+    <name>hbase.hconnection.threads.keepalivetime</name>
+    <value>3</value>
+  </property>
 </configuration>


Mime
View raw message