/[Apache-SVN]
ViewVC logotype

Revision 1210640


Jump to revision: Previous Next
Author: nspiegelberg
Date: Mon Dec 5 21:17:47 2011 UTC (12 years, 10 months ago)
Changed paths: 4
Log Message:
Ability to calculate the blockcache hit ratio for the last few minutes

Summary:
The metric blockcacheHitRatio is since the beginning of time. It would be nice
to calculate the block cache hit ratio for the past few minutes.

This patch remembers the blockcacheHitRatio for the last 5 periods by default.

Test Plan: unit test attached.

Reviewers: jgray, khemani, nspiegelberg, JIRA

Reviewed By: nspiegelberg

CC: nspiegelberg, dhruba

Differential Revision: 585

Changed paths

Path Details
Directoryhbase/trunk/src/main/java/org/apache/hadoop/hbase/io/hfile/CacheStats.java modified , text changed
Directoryhbase/trunk/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java modified , text changed
Directoryhbase/trunk/src/main/java/org/apache/hadoop/hbase/regionserver/metrics/RegionServerMetrics.java modified , text changed
Directoryhbase/trunk/src/test/java/org/apache/hadoop/hbase/io/hfile/TestLruBlockCache.java modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26