wenzhenghu opened a new pull request, #51484:
URL: https://github.com/apache/doris/pull/51484

   …t_cache_in_advance stat/metrics when false
   
   ### What problem does this PR solve?
   
   Currently, file_cache_statistics only exposes the overall hit rate, as well 
as the 5-minute and 1-hour hit rates, which makes it impossible to flexibly and 
accurately calculate the hit rate for any arbitrary time period. Therefore, 
this PR exposes metrics such as the number of cache reads and hits, enabling 
precise calculation of cache hit rates at the query level.
   
   Additionally, this PR also exposes the current states of 
need_evict_cache_in_advance and disk_resource_limit_mode, as they significantly 
impact cache performance and query hit rates. By making them available in 
file_cache_statistics, users can easily retrieve these metrics via SQL.
   
   If the parameter enable_evict_file_cache_in_advance is set to false, then 
the _need_evict_cache_in_advance_metrics should be set to 0.
   
   Issue Number: close #xxx
   
   Related PR: #xxx
   
   Problem Summary:
   
   ### Release note
   
   None
   
   ### Check List (For Author)
   
   - Test <!-- At least one of them must be included. -->
       - [ ] Regression test
       - [ ] Unit Test
       - [ ] Manual test (add detailed scripts or steps below)
       - [ ] No need to test or manual test. Explain why:
           - [ ] This is a refactor/code format and no logic has been changed.
           - [ ] Previous test can cover this change.
           - [ ] No code files have been changed.
           - [ ] Other reason <!-- Add your reason?  -->
   
   - Behavior changed:
       - [ ] No.
       - [ ] Yes. <!-- Explain the behavior change -->
   
   - Does this need documentation?
       - [ ] No.
       - [ ] Yes. <!-- Add document PR link here. eg: 
https://github.com/apache/doris-website/pull/1214 -->
   
   ### Check List (For Reviewer who merge this PR)
   
   - [ ] Confirm the release note
   - [ ] Confirm test cases
   - [ ] Confirm document
   - [ ] Add branch pick label <!-- Add branch pick label that this PR should 
merge into -->
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to