Wellington Chevreuil created HBASE-29276:
--------------------------------------------

             Summary: Compute and display hit ratio by configurable, granular 
time periods
                 Key: HBASE-29276
                 URL: https://issues.apache.org/jira/browse/HBASE-29276
             Project: HBase
          Issue Type: Improvement
            Reporter: Wellington Chevreuil
            Assignee: Wellington Chevreuil
         Attachments: Screenshot 2025-04-28 at 18.30.37.png

Currently, we only compute and display hit ratio stats for the all time running 
period of the given region servers. For long running setups where most of the 
accessed data is cached, small recent periods of low hits would go undetected, 
since the larger number of long term hits would drive the hit average up.

This proposes two additional properties:

1) "hbase.blockcache.stats.periods" which allows for defining a multiple window 
period;

2)  "hbase.blockcache.stats.period.minute" which defines the length of each of 
these periods;

If "hbase.blockcache.stats.periods" is defined and is greater than one, it 
creates a scheduled executor that rolls the metrics calculation at 
"hbase.blockcache.stats.period.minute" rate.

BucketCache can then set a default window of 12 periods each 5 minutes long, 
providing metrics over the last hour, in addition to the all time hit ratio.

 

!Screenshot 2025-04-28 at 18.30.37.png|width=1536,height=494!

 

 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to