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

chore(blooms): Populate blocks cache on startup #12056

Merged
merged 1 commit into from
Feb 26, 2024

Conversation

chaudum
Copy link
Contributor

@chaudum chaudum commented Feb 26, 2024

What this PR does / why we need it:

In order to prevent blocks on disk to become orphaned after restarts, we load them into the cache on startup.

The cache takes care of evicting/cleaning items when the max cache size is reached.

In order to prevent blocks on disk to become orphaned after restarts,
we load them into the cache on startup.

The cache takes care of evicting/cleaning items when the max cache size
is reached.

Signed-off-by: Christian Haudum <christian.haudum@gmail.com>
@chaudum chaudum marked this pull request as ready for review February 26, 2024 14:06
@chaudum chaudum requested a review from a team as a code owner February 26, 2024 14:06
@owen-d owen-d merged commit cb7e016 into main Feb 26, 2024
13 checks passed
@owen-d owen-d deleted the chaudum/populate-blockscache-on-startup branch February 26, 2024 19:47
rhnasc pushed a commit to inloco/loki that referenced this pull request Apr 12, 2024
Signed-off-by: Christian Haudum <christian.haudum@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants