@InterfaceAudience.LimitedPrivate(value="Configuration") public class BusyRegionSplitPolicy extends IncreasingToUpperBoundRegionSplitPolicy
Modifier and Type | Field and Description |
---|---|
private long |
aggregationWindow |
private float |
blockedRate |
private long |
blockedRequestCount |
static long |
DEFAULT_AGGREGATION_WINDOW |
static float |
DEFAULT_MAX_BLOCKED_REQUESTS |
static long |
DEFAULT_MIN_AGE_MS |
private static org.slf4j.Logger |
LOG |
private float |
maxBlockedRequests |
private long |
minAge |
private long |
prevTime |
private HRegion |
region |
private long |
startTime |
private long |
writeRequestCount |
initialSize
Constructor and Description |
---|
BusyRegionSplitPolicy() |
Modifier and Type | Method and Description |
---|---|
protected void |
configureForRegion(HRegion region)
Upon construction, this method will be called with the region
to be governed.
|
private void |
init() |
protected boolean |
shouldSplit() |
private float |
updateRate()
Update the blocked request rate based on number of blocked and total write requests in the
last aggregation window, or since last call to this method, whichever is farthest in time.
|
getSizeToCheck
getDesiredMaxFileSize, positiveJitterRate
create, getSplitPoint, getSplitPolicyClass, skipStoreFileRangeCheck
private static final org.slf4j.Logger LOG
private float maxBlockedRequests
public static final float DEFAULT_MAX_BLOCKED_REQUESTS
private long minAge
public static final long DEFAULT_MIN_AGE_MS
private long aggregationWindow
public static final long DEFAULT_AGGREGATION_WINDOW
private long prevTime
private long startTime
private long writeRequestCount
private long blockedRequestCount
private float blockedRate
public BusyRegionSplitPolicy()
protected void configureForRegion(HRegion region)
RegionSplitPolicy
configureForRegion
in class IncreasingToUpperBoundRegionSplitPolicy
private void init()
protected boolean shouldSplit()
shouldSplit
in class IncreasingToUpperBoundRegionSplitPolicy
private float updateRate()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.