[
https://issues.apache.org/jira/browse/HBASE-4089?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
stack updated HBASE-4089:
-------------------------
Attachment: 4089v3.txt
Tried this patch up on cluster. Basically works. SlabCache numbers are odd.
Eviction counts need better description. Here is list of changes
{code}
Fix capitalization in web page top navbar.
Add two templates, one to do block cache tabs and then another to
do JSON views on block cache.
Hook them up in RSStatusTmpl.
In BlockCache remove getEvictedCount. Redundant with same method
in CacheStats. Make BlockCache implement CachedBlock iterator.
Allow implementations return L1 and L2 if present.
Remove old BlockCacheColumnFamilySummary and supporting classes
and tests. Unused. Not hooked up.
Heavyweight doing filter of hdfs contents to find file names.
Add a BlockCacheUtil that has aggregating functions, toString
and toJSON methods.
Make common BlockPriority class rather than dup enums
Renamed CachedBlock as LruCachedBlock and added CachedBlock
as Interface.
Renamed CachedBlockQueue as LruCachedBlockQueue.
Adds a cache reporting test but has few asserts; exercises,
doesn't confirm.
{code}
> blockCache contents report
> --------------------------
>
> Key: HBASE-4089
> URL: https://issues.apache.org/jira/browse/HBASE-4089
> Project: HBase
> Issue Type: New Feature
> Reporter: Doug Meil
> Assignee: Doug Meil
> Attachments: 4089.wip.txt, 4089.wip.v2.txt, 4089v3.txt, bc_basic.png,
> bc_bucketcache.png, bc_buckets.png, bc_config.png, bc_l1.png,
> bc_l2_buckets.png, bc_showing_buckets_start.png, bc_slabs.png, bc_slabs.png,
> bc_stats.png, hbase_4089_blockcachereport.pdf,
> java_blockcache_checkpoint_2011_08_11.patch
>
>
> Summarized block-cache report for a RegionServer would be helpful. For
> example ...
> table1
> cf1 100 blocks, totalBytes=yyyyy, averageTimeInCache=XXXX hours
> cf2 200 blocks, totalBytes=zzzzz, averageTimeInCache=XXXX hours
> table2
> cf1 75 blocks, totalBytes=yyyyy, averageTimeInCache=XXXX hours
> cf2 150 blocks, totalBytes=zzzzz, averageTimeInCache=XXXX hours
> ... Etc.
> The current metrics list blockCacheSize and blockCacheFree, but there is no
> way to know what's in there. Any single block isn't really important, but
> the patterns of what CF/Table they came from, how big are they, and how long
> (on average) they've been in the cache, are important.
> No such interface exists in HRegionInterface. But I think it would be
> helpful from an operational perspective.
> Updated (7-29): Removing suggestion for UI. I would be happy just to get
> this report on a configured interval dumped to a log file.
--
This message was sent by Atlassian JIRA
(v6.2#6252)