Class PressureAwareCompactionThroughputController
java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.hadoop.hbase.regionserver.throttle.PressureAwareThroughputController
org.apache.hadoop.hbase.regionserver.throttle.PressureAwareCompactionThroughputController
- All Implemented Interfaces:
org.apache.hadoop.conf.Configurable
,ThroughputController
,Stoppable
@LimitedPrivate("Configuration")
public class PressureAwareCompactionThroughputController
extends PressureAwareThroughputController
A throughput controller which uses the follow schema to limit throughput
- If compaction pressure is greater than 1.0, no limitation.
- In off peak hours, use a fixed throughput limitation "hbase.hstore.compaction.throughput.offpeak"
- In normal hours, the max throughput is tuned between "hbase.hstore.compaction.throughput.lower.bound" and "hbase.hstore.compaction.throughput.higher.bound", using the formula "lower + (higer - lower) * compactionPressure", where compactionPressure is in range [0.0, 1.0]
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final long
private static final long
private static final long
private static final int
static final String
static final String
static final String
private static final String
static final String
private static final org.slf4j.Logger
private long
Fields inherited from class org.apache.hadoop.hbase.regionserver.throttle.PressureAwareThroughputController
activeOperations, controlPerSize, maxThroughputLowerBound, maxThroughputUpperBound, offPeakHours, tuningPeriod
-
Constructor Summary
-
Method Summary
Methods inherited from class org.apache.hadoop.hbase.regionserver.throttle.PressureAwareThroughputController
control, finish, getMaxThroughput, isStopped, setMaxThroughput, start, stop, throughputDesc, throughputDesc
Methods inherited from class org.apache.hadoop.conf.Configured
getConf
-
Field Details
-
LOG
-
HBASE_HSTORE_COMPACTION_MAX_THROUGHPUT_HIGHER_BOUND
- See Also:
-
DEFAULT_HBASE_HSTORE_COMPACTION_MAX_THROUGHPUT_HIGHER_BOUND
- See Also:
-
HBASE_HSTORE_COMPACTION_MAX_THROUGHPUT_LOWER_BOUND
- See Also:
-
DEFAULT_HBASE_HSTORE_COMPACTION_MAX_THROUGHPUT_LOWER_BOUND
- See Also:
-
HBASE_HSTORE_COMPACTION_MAX_THROUGHPUT_OFFPEAK
- See Also:
-
DEFAULT_HBASE_HSTORE_COMPACTION_MAX_THROUGHPUT_OFFPEAK
- See Also:
-
HBASE_HSTORE_COMPACTION_THROUGHPUT_TUNE_PERIOD
- See Also:
-
DEFAULT_HSTORE_COMPACTION_THROUGHPUT_TUNE_PERIOD
- See Also:
-
HBASE_HSTORE_COMPACTION_THROUGHPUT_CONTROL_CHECK_INTERVAL
- See Also:
-
maxThroughputOffpeak
-
-
Constructor Details
-
PressureAwareCompactionThroughputController
-
-
Method Details
-
setup
Description copied from interface:ThroughputController
Setup controller for the given region server.- Specified by:
setup
in interfaceThroughputController
- Specified by:
setup
in classPressureAwareThroughputController
-
tune
-
setConf
- Specified by:
setConf
in interfaceorg.apache.hadoop.conf.Configurable
- Overrides:
setConf
in classorg.apache.hadoop.conf.Configured
-
toString
-