定義在 hbase-site.xml 文件
## Count of RPC Listener instances spun up on RegionServers
## 一個(gè) region server 可以同時(shí)處理的請(qǐng)求個(gè)數(shù) (包括增刪查改), 超過這個(gè)值的請(qǐng)求會(huì)在 Queue 里排隊(duì)
hbase.regionserver.handler.count : 30
## 以下幾個(gè)參數(shù)是關(guān)于 MemStore 刷入 HFile 的機(jī)制
## 1. MemStore 超過 128M 時(shí)刷入 (默認(rèn)每 10 秒檢查一次)
## 2. MemStore 超過 4 * 128M 時(shí) block 更新 MemStore 的操作稿茉,并強(qiáng)制做 flush恨豁,這是為了處理出現(xiàn) spike 的場(chǎng)景
## 3. 當(dāng) RegionServer 所有 MemStore 的總大小超過 RegionServer 的 heap 的 40% 時(shí)行楞,會(huì) block 所有更新 MemStore 的操作命爬,并強(qiáng)制做 flush,從占內(nèi)存大的 MemStore 開始
## 4. 當(dāng) RegionServer 所有 MemStore 的總大小超過 RegionServer 的 heap 的 40% * 0.95 時(shí),選擇占用內(nèi)存大的 MemStore 阻塞更新操作狭莱,并進(jìn)行 flush
## 5. 當(dāng) WAL(Write-ahead log僵娃,預(yù)寫日志) 數(shù)量,也就是 HLog 文件數(shù)據(jù)大于 32 時(shí)腋妙,會(huì)進(jìn)行 flush默怨,從最舊的 HLog 文件對(duì)應(yīng)的 Region 開始
## 6. Region 的數(shù)據(jù)更新超過一定閾值 (30 millions)
## 7. 定期 (1 小時(shí)) 進(jìn)行 flush
## 8. 也可以手動(dòng)刷入,HBase shell -> flush "TableName"
## if a MemStore exceed 128M, flush to HDFS HFile
## can flush in hbase shell manaully : flush 'TABLENAME'
hbase.hregion.memstore.flush.size : 134217728 (128M)
## block update(write,insert,delete) action if a MemStore exceed flush.size*multiplier, for spike traffic scenario
## throw RegionTooBusyException
hbase.hregion.memstore.block.multiplier : 4
## Maximum size of all memstores in a region server before new updates are blocked and flushes are forced
hbase.regionserver.global.memstore.size : 0.4
## Maximum size of all memstores in a region server before flushes are forced
hbase.regionserver.global.memstore.size.lower.limit : 95% of hbase.regionserver.global.memstore.size
## If more than this many logs, force flush of oldest region to oldest edit goes to disk.
hbase.regionserver.maxlogs : 32
## force a flush if there are already enough changes for one region in memstore
hbase.regionserver.flush.per.changes : 30000000
## Maximum amount of time an edit lives in memory before being automatically flushed
hbase.regionserver.optionalcacheflushinterval : 3600000 (1 hour)
## Maximum HStoreFile size in HDFS
## hadoop fs -du -s -h /apps/hbase/data/data/default/REGULARDATAPHOENIXTABLE/*
hbase.hregion.max.filesize : 10737418240 (10G)
## The time (in miliseconds) between 'major' compactions of all HStoreFiles in a region
## 多久做一次 major compact
hbase.hregion.majorcompaction : 604800000 (7 days)
## Max number of HStoreFiles to compact per 'minor' compaction
## 一次 minor compact 最多操作多少個(gè) HFile
hbase.hstore.compaction.max : 10