@InterfaceAudience.Private class DefaultHeapMemoryTuner extends Object implements HeapMemoryTuner
Modifier and Type | Class and Description |
---|---|
private static class |
DefaultHeapMemoryTuner.StepDirection |
Constructor and Description |
---|
DefaultHeapMemoryTuner() |
Modifier and Type | Method and Description |
---|---|
private void |
addToRollingStats(HeapMemoryManager.TunerContext context)
Add the given context to the rolling tuner stats.
|
org.apache.hadoop.conf.Configuration |
getConf() |
private DefaultHeapMemoryTuner.StepDirection |
getTuneDirection(HeapMemoryManager.TunerContext context)
Determine best direction of tuning base on given context.
|
void |
setConf(org.apache.hadoop.conf.Configuration conf) |
HeapMemoryManager.TunerResult |
tune(HeapMemoryManager.TunerContext context)
Perform the heap memory tuning operation.
|
public static final String MAX_STEP_KEY
public static final String MIN_STEP_KEY
public static final String SUFFICIENT_MEMORY_LEVEL_KEY
public static final String LOOKUP_PERIODS_KEY
public static final String NUM_PERIODS_TO_IGNORE
public static final float DEFAULT_MAX_STEP_VALUE
public static final float DEFAULT_MIN_STEP_VALUE
public static final float DEFAULT_SUFFICIENT_MEMORY_LEVEL_VALUE
public static final int DEFAULT_LOOKUP_PERIODS
public static final int DEFAULT_NUM_PERIODS_IGNORED
private static final HeapMemoryManager.TunerResult NO_OP_TUNER_RESULT
private static final double TUNER_STEP_EPS
private org.slf4j.Logger LOG
private HeapMemoryManager.TunerResult TUNER_RESULT
private org.apache.hadoop.conf.Configuration conf
private float sufficientMemoryLevel
private float maximumStepSize
private float minimumStepSize
private int tunerLookupPeriods
private int numPeriodsToIgnore
private int ignoreInitialPeriods
private float globalMemStorePercentMinRange
private float globalMemStorePercentMaxRange
private float blockCachePercentMinRange
private float blockCachePercentMaxRange
private float globalMemStoreLimitLowMarkPercent
private RollingStatCalculator rollingStatsForCacheMisses
private RollingStatCalculator rollingStatsForFlushes
private RollingStatCalculator rollingStatsForEvictions
private RollingStatCalculator rollingStatsForTunerSteps
private float step
private DefaultHeapMemoryTuner.StepDirection prevTuneDirection
private double decayingTunerStepSizeSum
DefaultHeapMemoryTuner()
public HeapMemoryManager.TunerResult tune(HeapMemoryManager.TunerContext context)
HeapMemoryTuner
tune
in interface HeapMemoryTuner
TunerResult
including the heap percentage for memstore and block cacheprivate DefaultHeapMemoryTuner.StepDirection getTuneDirection(HeapMemoryManager.TunerContext context)
context
- The tuner context.private void addToRollingStats(HeapMemoryManager.TunerContext context)
context
- The tuner context.public org.apache.hadoop.conf.Configuration getConf()
getConf
in interface org.apache.hadoop.conf.Configurable
public void setConf(org.apache.hadoop.conf.Configuration conf)
setConf
in interface org.apache.hadoop.conf.Configurable
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.