Class IncreasingToUpperBoundRegionSplitPolicy
java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.hadoop.hbase.regionserver.RegionSplitPolicy
org.apache.hadoop.hbase.regionserver.ConstantSizeRegionSplitPolicy
org.apache.hadoop.hbase.regionserver.IncreasingToUpperBoundRegionSplitPolicy
- All Implemented Interfaces:
org.apache.hadoop.conf.Configurable
- Direct Known Subclasses:
BusyRegionSplitPolicy
,DelimitedKeyPrefixRegionSplitPolicy
,KeyPrefixRegionSplitPolicy
,SteppingSplitPolicy
Split size is the number of regions that are on this server that all are of the same table,
cubed, times 2x the region flush size OR the maximum region split size, whichever is smaller.
For example, if the flush size is 128MB, then after two flushes (256MB) we will split which will
make two regions that will split when their size is 2^3 * 128MB*2 = 2048MB
.
If one of these regions splits, then there are three regions and now the split size is
3^3 * 128MB*2 = 6912MB
, and so on until we reach the configured maximum file size and
then from there on out, we'll use that.
-
Field Summary
Modifier and TypeFieldDescriptionprotected long
private static final org.slf4j.Logger
Fields inherited from class org.apache.hadoop.hbase.regionserver.ConstantSizeRegionSplitPolicy
overallHRegionFiles
Fields inherited from class org.apache.hadoop.hbase.regionserver.RegionSplitPolicy
region
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
configureForRegion
(HRegion region) Upon construction, this method will be called with the region to be governed.private int
Returns Count of regions on this server that share the table this.region belongs toprotected long
getSizeToCheck
(int tableRegionsCount) protected boolean
Returns true if the specified region should be split.toString()
Methods inherited from class org.apache.hadoop.hbase.regionserver.ConstantSizeRegionSplitPolicy
getDesiredMaxFileSize, isExceedSize, positiveJitterRate
Methods inherited from class org.apache.hadoop.hbase.regionserver.RegionSplitPolicy
canSplit, create, getSplitPoint, getSplitPolicyClass, skipStoreFileRangeCheck
Methods inherited from class org.apache.hadoop.conf.Configured
getConf, setConf
-
Field Details
-
LOG
-
initialSize
-
-
Constructor Details
-
IncreasingToUpperBoundRegionSplitPolicy
-
-
Method Details
-
toString
- Overrides:
toString
in classConstantSizeRegionSplitPolicy
-
configureForRegion
Description copied from class:RegionSplitPolicy
Upon construction, this method will be called with the region to be governed. It will be called once and only once.- Overrides:
configureForRegion
in classConstantSizeRegionSplitPolicy
-
shouldSplit
Description copied from class:RegionSplitPolicy
Returns true if the specified region should be split.- Overrides:
shouldSplit
in classConstantSizeRegionSplitPolicy
-
getCountOfCommonTableRegions
Returns Count of regions on this server that share the table this.region belongs to -
getSizeToCheck
- Returns:
- Region max size or
count of regions cubed * 2 * flushsize
, which ever is smaller; guard against there being zero regions on this server.
-