@InterfaceAudience.Private public class StoreHotnessProtector extends Object
There are three key parameters:
1. parallelPutToStoreThreadLimitCheckMinColumnCount: If the amount of columns exceed this threshold, the HotProtector will work, 100 by default
2. parallelPutToStoreThreadLimit: The amount of concurrency allowed to write puts to a Store at the same time.
3. parallelPreparePutToStoreThreadLimit: The amount of concurrency allowed to prepare writing puts to a Store at the same time.
Notice that our writing pipeline includes three key process: MVCC acquire, writing MemStore, and WAL. Only limit the concurrency of writing puts to Store(parallelPutToStoreThreadLimit) is not enough since the actual concurrency of puts may still exceed the limit when MVCC contention or slow WAL sync happens. This is why parallelPreparePutToStoreThreadLimit is needed.
This protector is enabled by default and could be turned off by setting hbase.region.store.parallel.put.limit to 0, supporting online configuration change.
| 限定符和类型 | 字段和说明 |
|---|---|
static long |
FIXED_SIZE |
static String |
PARALLEL_PREPARE_PUT_STORE_MULTIPLIER |
static String |
PARALLEL_PUT_STORE_THREADS_LIMIT |
static String |
PARALLEL_PUT_STORE_THREADS_LIMIT_MIN_COLUMN_COUNT |
| 构造器和说明 |
|---|
StoreHotnessProtector(Region region,
org.apache.hadoop.conf.Configuration conf) |
public static final String PARALLEL_PUT_STORE_THREADS_LIMIT
public static final String PARALLEL_PREPARE_PUT_STORE_MULTIPLIER
public static final String PARALLEL_PUT_STORE_THREADS_LIMIT_MIN_COLUMN_COUNT
public static final long FIXED_SIZE
public StoreHotnessProtector(Region region, org.apache.hadoop.conf.Configuration conf)
public void init(org.apache.hadoop.conf.Configuration conf)
public void update(org.apache.hadoop.conf.Configuration conf)
public void start(Map<byte[],List<Cell>> familyMaps) throws RegionTooBusyException
public boolean isEnable()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.