@InterfaceAudience.Private public class CacheStats extends Object
Modifier and Type | Field and Description |
---|---|
private FastLongHistogram |
ageAtEviction
Keep running age at eviction time
|
private LongAdder |
bloomChunkHitCount |
private LongAdder |
bloomChunkMissCount |
private LongAdder |
dataHitCount |
private LongAdder |
dataMissCount
Per Block Type Counts
|
(package private) static int |
DEFAULT_WINDOW_PERIODS
Sliding window statistics.
|
private LongAdder |
deleteFamilyBloomHitCount |
private LongAdder |
deleteFamilyBloomMissCount |
private LongAdder |
evictedBlockCount
The total number of blocks that have been evicted
|
private LongAdder |
evictionCount
The number of times an eviction has occurred
|
private AtomicLong |
failedInserts
The total number of blocks that were not inserted.
|
private LongAdder |
fileInfoHitCount |
private LongAdder |
fileInfoMissCount |
private LongAdder |
generalBloomMetaHitCount |
private LongAdder |
generalBloomMetaMissCount |
private LongAdder |
hitCachingCount
The number of getBlock requests that were cache hits, but only from requests that were set to
use the block cache.
|
private long[] |
hitCachingCounts
Caching hit counts for each period in window
|
private LongAdder |
hitCount
The number of getBlock requests that were cache hits
|
private long[] |
hitCounts
Hit counts for each period in window
|
private LongAdder |
intermediateIndexHitCount |
private LongAdder |
intermediateIndexMissCount |
private long |
lastHitCachingCount
Last hit caching count read
|
private long |
lastHitCount
Last hit count read
|
private long |
lastRequestCachingCount
Last request caching count read
|
private long |
lastRequestCount
Last request count read
|
private LongAdder |
leafIndexHitCount |
private LongAdder |
leafIndexMissCount |
private LongAdder |
metaHitCount |
private LongAdder |
metaMissCount |
private LongAdder |
missCachingCount
The number of getBlock requests that were cache misses, but only from requests that were set to
use the block cache.
|
private LongAdder |
missCount
The number of getBlock requests that were cache misses
|
private int |
numPeriodsInWindow
The number of metrics periods to include in window
|
private LongAdder |
primaryEvictedBlockCount
The total number of blocks for primary replica that have been evicted
|
private LongAdder |
primaryHitCount
The number of getBlock requests that were cache hits from primary replica
|
private LongAdder |
primaryMissCount
The number of getBlock requests for primary replica that were cache misses
|
private long[] |
requestCachingCounts
Caching access counts for each period in window
|
private long[] |
requestCounts
Access counts for each period in window
|
private LongAdder |
rootIndexHitCount |
private LongAdder |
rootIndexMissCount |
private long |
startTime |
private LongAdder |
trailerHitCount |
private LongAdder |
trailerMissCount |
private int |
windowIndex
Current window index (next to be updated)
|
Constructor and Description |
---|
CacheStats(String name) |
CacheStats(String name,
int numPeriodsInWindow) |
static final int DEFAULT_WINDOW_PERIODS
private final LongAdder primaryHitCount
private final LongAdder hitCachingCount
private final LongAdder primaryMissCount
private final LongAdder missCachingCount
private final LongAdder evictionCount
private final LongAdder evictedBlockCount
private final LongAdder primaryEvictedBlockCount
private final AtomicLong failedInserts
private final LongAdder dataMissCount
private final LongAdder leafIndexMissCount
private final LongAdder bloomChunkMissCount
private final LongAdder metaMissCount
private final LongAdder rootIndexMissCount
private final LongAdder intermediateIndexMissCount
private final LongAdder fileInfoMissCount
private final LongAdder generalBloomMetaMissCount
private final LongAdder deleteFamilyBloomMissCount
private final LongAdder trailerMissCount
private final LongAdder dataHitCount
private final LongAdder leafIndexHitCount
private final LongAdder bloomChunkHitCount
private final LongAdder metaHitCount
private final LongAdder rootIndexHitCount
private final LongAdder intermediateIndexHitCount
private final LongAdder fileInfoHitCount
private final LongAdder generalBloomMetaHitCount
private final LongAdder deleteFamilyBloomHitCount
private final LongAdder trailerHitCount
private final int numPeriodsInWindow
private final long[] hitCounts
private final long[] hitCachingCounts
private final long[] requestCounts
private final long[] requestCachingCounts
private long lastHitCount
private long lastHitCachingCount
private long lastRequestCount
private long lastRequestCachingCount
private int windowIndex
private FastLongHistogram ageAtEviction
private long startTime
public CacheStats(String name)
public CacheStats(String name, int numPeriodsInWindow)
public void evict()
public void evicted(long t, boolean primary)
public long failInsert()
public long getDataMissCount()
public long getLeafIndexMissCount()
public long getBloomChunkMissCount()
public long getMetaMissCount()
public long getRootIndexMissCount()
public long getIntermediateIndexMissCount()
public long getFileInfoMissCount()
public long getGeneralBloomMetaMissCount()
public long getDeleteFamilyBloomMissCount()
public long getTrailerMissCount()
public long getDataHitCount()
public long getLeafIndexHitCount()
public long getBloomChunkHitCount()
public long getMetaHitCount()
public long getRootIndexHitCount()
public long getIntermediateIndexHitCount()
public long getFileInfoHitCount()
public long getGeneralBloomMetaHitCount()
public long getDeleteFamilyBloomHitCount()
public long getTrailerHitCount()
public long getRequestCount()
public long getRequestCachingCount()
public long getMissCount()
public long getPrimaryMissCount()
public long getMissCachingCount()
public long getHitCount()
public long getPrimaryHitCount()
public long getHitCachingCount()
public long getEvictionCount()
public long getEvictedCount()
public long getPrimaryEvictedCount()
public double getHitRatio()
public double getHitCachingRatio()
public double getMissRatio()
public double getMissCachingRatio()
public double evictedPerEviction()
public long getFailedInserts()
public void rollMetricsPeriod()
public long getSumHitCountsPastNPeriods()
public long getSumRequestCountsPastNPeriods()
public long getSumHitCachingCountsPastNPeriods()
public long getSumRequestCachingCountsPastNPeriods()
public double getHitRatioPastNPeriods()
public double getHitCachingRatioPastNPeriods()
public AgeSnapshot getAgeAtEvictionSnapshot()
private static long sum(long[] counts)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.