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
FieldsModifier and TypeFieldDescriptionprotected longprivate static final org.slf4j.LoggerFields inherited from class org.apache.hadoop.hbase.regionserver.ConstantSizeRegionSplitPolicy
MAX_FILESIZE_JITTER_KEY, overallHRegionFilesFields inherited from class org.apache.hadoop.hbase.regionserver.RegionSplitPolicy
region -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconfigureForRegion(HRegion region) Upon construction, this method will be called with the region to be governed.private intReturns Count of regions on this server that share the table this.region belongs toprotected longgetSizeToCheck(int tableRegionsCount) protected booleanReturns true if the specified region should be split.toString()Methods inherited from class org.apache.hadoop.hbase.regionserver.ConstantSizeRegionSplitPolicy
getDesiredMaxFileSize, isExceedSize, positiveJitterRateMethods inherited from class org.apache.hadoop.hbase.regionserver.RegionSplitPolicy
canSplit, create, getSplitPoint, getSplitPolicyClass, skipStoreFileRangeCheckMethods inherited from class org.apache.hadoop.conf.Configured
getConf, setConf
-
Field Details
-
LOG
-
initialSize
-
-
Constructor Details
-
IncreasingToUpperBoundRegionSplitPolicy
-
-
Method Details
-
toString
- Overrides:
toStringin classConstantSizeRegionSplitPolicy
-
configureForRegion
Description copied from class:RegionSplitPolicyUpon construction, this method will be called with the region to be governed. It will be called once and only once.- Overrides:
configureForRegionin classConstantSizeRegionSplitPolicy
-
shouldSplit
Description copied from class:RegionSplitPolicyReturns true if the specified region should be split.- Overrides:
shouldSplitin 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.
-