HBase LRU淘汰中遇到的难题

在重启regionServer的时候出现如下淘汰相关日志:(见下面附件)
2019-04-02 10:42:05,842 INFO  [LruBlockCacheStatsExecutor] hfile.LruBlockCache: totalSize=11.69 MB, freeSize=11.12 GB, max=11.13 GB, blockCount=0, accesses=0, hits=0, hitRatio=0, cachingAccesses=0, cachingHits=0, cachingHitsRatio=0,evictions=5069, evicted=0, evictedPerRun=0.0
2019-04-02 10:47:05,842 INFO  [LruBlockCacheStatsExecutor] hfile.LruBlockCache: totalSize=11.69 MB, freeSize=11.12 GB, max=11.13 GB, blockCount=0, accesses=0, hits=0, hitRatio=0, cachingAccesses=0, cachingHits=0, cachingHitsRatio=0,evictions=5099, evicted=0, evictedPerRun=0.0
2019-04-02 10:52:05,842 INFO  [LruBlockCacheStatsExecutor] hfile.LruBlockCache: totalSize=11.69 MB, freeSize=11.12 GB, max=11.13 GB, blockCount=0, accesses=0, hits=0, hitRatio=0, cachingAccesses=0, cachingHits=0, cachingHitsRatio=0,evictions=5129, evicted=0, evictedPerRun=0.0
2019-04-02 10:57:05,842 INFO  [LruBlockCacheStatsExecutor] hfile.LruBlockCache: totalSize=11.69 MB, freeSize=11.12 GB, max=11.13 GB, blockCount=0, accesses=0, hits=0, hitRatio=0, cachingAccesses=0, cachingHits=0, cachingHitsRatio=0,evictions=5159, evicted=0, evictedPerRun=0.0
2019-04-02 11:02:05,842 INFO  [LruBlockCacheStatsExecutor] hfile.LruBlockCache: totalSize=11.69 MB, freeSize=11.12 GB, max=11.13 GB, blockCount=0, accesses=0, hits=0, hitRatio=0, cachingAccesses=0, cachingHits=0, cachingHitsRatio=0,evictions=5189, evicted=0, evictedPerRun=0.0
2019-04-02 11:07:05,842 INFO  [LruBlockCacheStatsExecutor] hfile.LruBlockCache: totalSize=11.69 MB, freeSize=11.12 GB, max=11.13 GB, blockCount=0, accesses=0, hits=0, hitRatio=0, cachingAccesses=0, cachingHits=0, cachingHitsRatio=0,evictions=5219, evicted=0, evictedPerRun=0.0
从上面日志中可以看出使用的size非常小并没有达到阈值条件,但是却触发了淘汰机制,并且淘汰还一直不结束,每五分钟一次不停进行淘汰,导致其他regionServer上的region无法均衡到该regionServer上,从而请求也无法到达这个regionServer,直到该regionServer结束淘汰,其才能正常工作。请问造成这种情况的原因是什么(其中xmx32g,xmn2g,block.cache.size=0.35)
 
warn.jpg
已邀请:

林明

赞同来自:

你对这个日志的理解有误,evictions 是说总共尝试进行了多少次淘汰,实际淘汰的blcok数量是由evicted表示的。

要回复问题请先登录注册


中国HBase技术社区微信公众号:
hbasegroup

欢迎加入HBase生态+Spark社区钉钉大群