[ISSUE #10572] Add dual TTL policy for tiered storage read-ahead cache#10573
Open
Houlong66 wants to merge 1 commit into
Open
[ISSUE #10572] Add dual TTL policy for tiered storage read-ahead cache#10573Houlong66 wants to merge 1 commit into
Houlong66 wants to merge 1 commit into
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #10573 +/- ##
=============================================
- Coverage 49.01% 48.16% -0.85%
+ Complexity 13485 13418 -67
=============================================
Files 1376 1378 +2
Lines 100527 100864 +337
Branches 12983 13047 +64
=============================================
- Hits 49274 48584 -690
- Misses 45251 46317 +1066
+ Partials 6002 5963 -39 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Which Issue(s) This PR Fixes
Brief Description
This PR adds a native dual-TTL policy for the tiered storage read-ahead cache.
The new default behavior keeps unread prefetched entries for
180000msafter creation, then switches entries to a shorter10000msTTL after they are read. This gives consumers more time to consume read-ahead batches while allowing already-read entries to be released sooner.Main changes:
readAheadCacheCreateExpireDurationandreadAheadCacheAfterReadExpireDurationtoMessageStoreConfig.readAheadCacheExpireDurationas the legacy single-TTL fallback.Expiryfor create/read/update-specific expiration.How Did You Test This Change?