From ab1969fb3603fa32f0aefd33324681afbde73f36 Mon Sep 17 00:00:00 2001 From: Michael Stack Date: Fri, 3 Dec 2010 04:54:07 +0000 Subject: [PATCH] HBASE-2375 Make decision to split based on aggregate size of all StoreFiles and revisit related config param git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1041689 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES.txt | 2 ++ src/main/java/org/apache/hadoop/hbase/master/HMaster.java | 2 +- .../org/apache/hadoop/hbase/regionserver/HRegionServer.java | 2 +- src/main/resources/hbase-default.xml | 4 ++-- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index 749a1682443..70dc80aca2e 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1220,6 +1220,8 @@ Release 0.90.0 - Unreleased and output side. HBASE-3223 Get VersionInfo for Running HBase Process (Nicolas Spiegelberg via Stack) + HBASE-2375 Make decision to split based on aggregate size of all StoreFiles + and revisit related config param NEW FEATURES diff --git a/src/main/java/org/apache/hadoop/hbase/master/HMaster.java b/src/main/java/org/apache/hadoop/hbase/master/HMaster.java index 634c0dc40c4..0da36ddded7 100644 --- a/src/main/java/org/apache/hadoop/hbase/master/HMaster.java +++ b/src/main/java/org/apache/hadoop/hbase/master/HMaster.java @@ -190,7 +190,7 @@ implements HMasterInterface, HMasterRegionInterface, MasterServices, Server { * The RPC server ports can be ephemeral. Create a ZKW instance. */ HServerAddress a = new HServerAddress(getMyAddress(this.conf)); - int numHandlers = conf.getInt("hbase.regionserver.handler.count", 25); + int numHandlers = conf.getInt("hbase.regionserver.handler.count", 10); this.rpcServer = HBaseRPC.getServer(this, new Class[]{HMasterInterface.class, HMasterRegionInterface.class}, a.getBindAddress(), a.getPort(), diff --git a/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java b/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java index e73c8efd818..2c711be3285 100644 --- a/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java +++ b/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java @@ -324,7 +324,7 @@ public class HRegionServer implements HRegionInterface, HBaseRPCErrorHandler, new Class[]{HRegionInterface.class, HBaseRPCErrorHandler.class, OnlineRegions.class}, address.getBindAddress(), - address.getPort(), conf.getInt("hbase.regionserver.handler.count", 25), + address.getPort(), conf.getInt("hbase.regionserver.handler.count", 10), conf.getInt("hbase.regionserver.metahandler.count", 10), false, conf, QOS_THRESHOLD); this.server.setErrorHandler(this); diff --git a/src/main/resources/hbase-default.xml b/src/main/resources/hbase-default.xml index 0889566b2f4..94dad6af75e 100644 --- a/src/main/resources/hbase-default.xml +++ b/src/main/resources/hbase-default.xml @@ -163,10 +163,10 @@ hbase.regionserver.handler.count - 25 + 10 Count of RPC Server instances spun up on RegionServers Same property is used by the Master for count of master handlers. - Default is 25. + Default is 10.