@InterfaceAudience.Private public class HeapMemoryManager extends Object
HeapMemoryTuner. Most part of the heap memory is
split between Memstores and BlockCache. This manager helps in tuning sizes of both these
dynamically, as per the R/W load on the servers.| 限定符和类型 | 类和说明 |
|---|---|
static interface |
HeapMemoryManager.HeapMemoryTuneObserver
Every class that wants to observe heap memory tune actions must implement this interface.
|
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.
|
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
BLOCK_CACHE_SIZE_MAX_RANGE_KEY |
static String |
BLOCK_CACHE_SIZE_MIN_RANGE_KEY |
static String |
HBASE_RS_HEAP_MEMORY_TUNER_CLASS |
static int |
HBASE_RS_HEAP_MEMORY_TUNER_DEFAULT_PERIOD |
static String |
HBASE_RS_HEAP_MEMORY_TUNER_PERIOD |
static float |
HEAP_OCCUPANCY_ERROR_VALUE |
static String |
MEMSTORE_SIZE_MAX_RANGE_KEY |
static String |
MEMSTORE_SIZE_MIN_RANGE_KEY |
| 限定符和类型 | 方法和说明 |
|---|---|
static HeapMemoryManager |
create(org.apache.hadoop.conf.Configuration conf,
FlushRequester memStoreFlusher,
Server server,
RegionServerAccounting regionServerAccounting) |
float |
getHeapOccupancyPercent() |
void |
registerTuneObserver(HeapMemoryManager.HeapMemoryTuneObserver observer) |
void |
start(ChoreService service) |
void |
stop() |
public static final String BLOCK_CACHE_SIZE_MAX_RANGE_KEY
public static final String BLOCK_CACHE_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
public static HeapMemoryManager create(org.apache.hadoop.conf.Configuration conf, FlushRequester memStoreFlusher, Server server, RegionServerAccounting regionServerAccounting)
public void start(ChoreService service)
public void stop()
public void registerTuneObserver(HeapMemoryManager.HeapMemoryTuneObserver observer)
public float getHeapOccupancyPercent()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.