Skip to content

[QUESTION]: Disk space not reclaiming, what do I need to adjust? #1995

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

Closed
mattdurham opened this issue Aug 21, 2023 · 3 comments
Closed

[QUESTION]: Disk space not reclaiming, what do I need to adjust? #1995

mattdurham opened this issue Aug 21, 2023 · 3 comments
Labels
kind/question Something requiring a response Stale

Comments

@mattdurham
Copy link

Question.

I am using BadgerDB for a durable queue and in most cases Key,Values exist for 60s and then are deleted. Over the past hour no space has been reclaimed. I call RunValueLogGC(0.01) every 5 minutes but it never reclaims any space.

My options are

opts.SyncWrites = true
opts.MetricsEnabled = true
opts.NumVersionsToKeep = 0
opts.MaxLevels = 1
opts.NumLevelZeroTables = 0
opts.NumLevelZeroTablesStall = 2

Screenshot from 2023-08-21 16-25-28

Thank you

@mattdurham mattdurham added the kind/question Something requiring a response label Aug 21, 2023
@mangalaman93
Copy link
Member

Is it possible for you to share the badger data directory? I can run value log gc on it locally and figure out why it is not cleaning up these files?

Copy link

This issue has been stale for 60 days and will be closed automatically in 7 days. Comment to keep it open.

@github-actions github-actions bot added the Stale label Jul 18, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jul 26, 2024
@wxbool
Copy link

wxbool commented Aug 19, 2024

I'm having the same problem. gc doesn't automatically clean up disk space.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/question Something requiring a response Stale
Development

No branches or pull requests

3 participants