pustota2009 commented on a change in pull request #1257:
URL: https://github.com/apache/hbase/pull/1257#discussion_r436524637
##########
File path:
hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/LruBlockCache.java
##########
@@ -153,6 +153,18 @@
private static final String LRU_MAX_BLOCK_SIZE = "hbase.lru.max.block.size";
private static final long DEFAULT_MAX_BLOCK_SIZE = 16L * 1024L * 1024L;
+ private static final String LRU_CACHE_HEAVY_EVICTION_COUNT_LIMIT
+ = "hbase.lru.cache.heavy.eviction.count.limit";
+ private static final int DEFAULT_LRU_CACHE_HEAVY_EVICTION_COUNT_LIMIT = 10;
+
+ private static final String LRU_CACHE_HEAVY_EVICTION_MB_SIZE_LIMIT
+ = "hbase.lru.cache.heavy.eviction.mb.size.limit";
+ private static final long DEFAULT_LRU_CACHE_HEAVY_EVICTION_MB_SIZE_LIMIT =
500;
+
+ private static final String LRU_CACHE_HEAVY_EVICTION_OVERHEAD_COEFFICIENT
+ = "hbase.lru.cache.heavy.eviction.overhead.coefficient";
+ private static final float
DEFAULT_LRU_CACHE_HEAVY_EVICTION_OVERHEAD_COEFFICIENT = 0.01f;
+
/**
Review comment:
ok, I set DEFAULT_LRU_CACHE_HEAVY_EVICTION_COUNT_LIMIT = 2147483647 and
this is off the feature for ~680 years (I hope HBase will live that time but
with some restarts anyway)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]