[ https://issues.apache.org/jira/browse/HBASE-29276?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wellington Chevreuil updated HBASE-29276: ----------------------------------------- Fix Version/s: 3.0.0 4.0.0-alpha-1 > 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 > Affects Versions: 3.0.0-beta-1, 4.0.0-alpha-1, 2.7.0, 2.6.2 > Reporter: Wellington Chevreuil > Assignee: Wellington Chevreuil > Priority: Major > Labels: pull-request-available > Fix For: 3.0.0, 4.0.0-alpha-1 > > 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=1045,height=336! > > -- This message was sent by Atlassian Jira (v8.20.10#820010)