-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Backport 2.x] [Tiered Caching] Stats rework (1/3): Interfaces and implementations for individual tiers #13247
[Backport 2.x] [Tiered Caching] Stats rework (1/3): Interfaces and implementations for individual tiers #13247
Conversation
…or individual tiers (opensearch-project#12531) As part of tiered caching stats, changes the common ICache interface to use ICacheKey as its key. This key contains dimensions (for example, shard ID, index name, or tier) that can be used to aggregate stats. Also changes the CacheStats interface to store the necessary cache stats, and to support getting stats either as a total or aggregated by these dimensions. Integrates these changes with OpenSearchOnHeapCache and EhcacheDiskCache. The stats implementation for the TieredSpilloverCache will be in a followup PR. --------- Signed-off-by: Peter Alfonsi <[email protected]> Co-authored-by: Peter Alfonsi <[email protected]> (cherry picked from commit cc22310)
❌ Gradle check result for 004c162: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Signed-off-by: Peter Alfonsi <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 2.x #13247 +/- ##
============================================
- Coverage 71.28% 71.26% -0.02%
- Complexity 60145 60715 +570
============================================
Files 4957 5010 +53
Lines 282799 285723 +2924
Branches 41409 41750 +341
============================================
+ Hits 201591 203632 +2041
- Misses 64189 64914 +725
- Partials 17019 17177 +158 ☔ View full report in Codecov by Sentry. |
@peteralfonsi @sgup432 Are there changes from the original PR? This area is way over my head, cc: @msfroh who merged the one to main. |
@dblock No changes, this is the same as the original PR. |
@dblock Yeah these are from original PR which was already merged in main. Pinged you as we need help on approval/merge considering this is a backport PR. |
Original PR: #12531
Signed-off-by: Peter Alfonsi [email protected]
Co-authored-by: Peter Alfonsi [email protected]
(cherry picked from commit cc22310)
Description
As part of tiered caching stats, changes the common ICache interface to use ICacheKey as its key. This key contains dimensions (for example, shard ID, index name, or tier) that can be used to aggregate stats. Also changes the CacheStats interface to store the necessary cache stats, and to support getting stats either as a total or aggregated by these dimensions.
Integrates these changes with OpenSearchOnHeapCache and EhcacheDiskCache. The stats implementation for the TieredSpilloverCache will be in a followup PR.
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.