@InterfaceAudience.Private public class HeapMemoryManager extends Object
HeapMemoryTuner
.Modifier and Type | Class and Description |
---|---|
private class |
HeapMemoryManager.HeapMemoryTunerChore |
static class |
HeapMemoryManager.TunerContext
POJO to pass all the relevant information required to do the heap memory tuning.
|
static class |
HeapMemoryManager.TunerResult
POJO which holds the result of memory tuning done by HeapMemoryTuner implementation.
|
Constructor and Description |
---|
HeapMemoryManager(ResizableBlockCache blockCache,
FlushRequester memStoreFlusher,
Server server,
RegionServerAccounting regionServerAccounting) |
Modifier and Type | Method and Description |
---|---|
static HeapMemoryManager |
create(org.apache.hadoop.conf.Configuration conf,
FlushRequester memStoreFlusher,
Server server,
RegionServerAccounting regionServerAccounting) |
private boolean |
doInit(org.apache.hadoop.conf.Configuration conf) |
float |
getHeapOccupancyPercent() |
(package private) boolean |
isTunerOn() |
void |
start(ChoreService service) |
void |
stop() |
private static final org.apache.commons.logging.Log LOG
private static final int CONVERT_TO_PERCENTAGE
private static final int CLUSTER_MINIMUM_MEMORY_THRESHOLD
public static final String BLOCK_CACHE_SIZE_MAX_RANGE_KEY
public static final String BLOCK_CACHE_SIZE_MIN_RANGE_KEY
public static final String MEMSTORE_SIZE_MAX_RANGE_KEY
public static final String MEMSTORE_SIZE_MIN_RANGE_KEY
public static final String HBASE_RS_HEAP_MEMORY_TUNER_PERIOD
public static final int HBASE_RS_HEAP_MEMORY_TUNER_DEFAULT_PERIOD
public static final String HBASE_RS_HEAP_MEMORY_TUNER_CLASS
public static final float HEAP_OCCUPANCY_ERROR_VALUE
private float globalMemStorePercent
private float globalMemStorePercentMinRange
private float globalMemStorePercentMaxRange
private float blockCachePercent
private float blockCachePercentMinRange
private float blockCachePercentMaxRange
private float l2BlockCachePercent
private float heapOccupancyPercent
private final ResizableBlockCache blockCache
private final FlushRequester memStoreFlusher
private final Server server
private final RegionServerAccounting regionServerAccounting
private HeapMemoryManager.HeapMemoryTunerChore heapMemTunerChore
private final boolean tunerOn
private final int defaultChorePeriod
private final float heapOccupancyLowWatermark
private final long maxHeapSize
HeapMemoryManager(ResizableBlockCache blockCache, FlushRequester memStoreFlusher, Server server, RegionServerAccounting regionServerAccounting)
public static HeapMemoryManager create(org.apache.hadoop.conf.Configuration conf, FlushRequester memStoreFlusher, Server server, RegionServerAccounting regionServerAccounting)
private boolean doInit(org.apache.hadoop.conf.Configuration conf)
public void start(ChoreService service)
public void stop()
boolean isTunerOn()
public float getHeapOccupancyPercent()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.