Skip to content
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

[v24.1.x] cst/cache: tracker based trim #21502

Conversation

vbotbuildovich
Copy link
Collaborator

Backport of PR #18786
Fixes: #21501,

abhijat added 5 commits July 18, 2024 15:05
* The access time tracker now also tracks file sizes.
* The key to the tracker map is now the full file path instead of a hash
* The serialized form of tracker now contains a version to distinguish
  between the old and new data structures.
* The recursive directory walker uses tracker entries to avoid file stat
  operations.

(cherry picked from commit d76659a)
When trimming a first attempt is made to get LRU entries from the access
tracker. If this does not free up enough space, then we proceed with
the existing trim based on directory walk.

(cherry picked from commit 63afff2)
The tracker is synced periodically with on-disk data using a directory
walk. This is necessary because once we switch to trimming using the
tracker, the data in tracker and on-disk may drift because of tmp
files, aborted downloads or manual deletion of files. A periodic sync
brings the tracker in sync with the metadata on disk.

(cherry picked from commit ee90a7b)
@vbotbuildovich vbotbuildovich added this to the v24.1.x-next milestone Jul 18, 2024
@vbotbuildovich vbotbuildovich added the kind/backport PRs targeting a stable branch label Jul 18, 2024
@vbotbuildovich vbotbuildovich requested a review from abhijat July 18, 2024 15:05
@piyushredpanda
Copy link
Contributor

Known failure: #20574

@piyushredpanda piyushredpanda merged commit bae012b into redpanda-data:v24.1.x Jul 18, 2024
16 of 19 checks passed
@BenPope BenPope modified the milestones: v24.1.x-next, v24.1.11 Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/redpanda kind/backport PRs targeting a stable branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants