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

Fix #1320: Add automatic GC to Badger datastore #1370

Merged
merged 1 commit into from
Jul 1, 2021
Merged

Conversation

hsanjuan
Copy link
Collaborator

This takes advantage of go-ds-badger "auto-gc" feature.

It will run a GC cycle made of multiple GC rounds (until it cannot GC more)
automatically. The behaviour is enabled by default in the configuration and
can be disabled by setting "gc_interval" to "0m". Hopefully this prevents
badger datastores from growing crazy.

This takes advantage of go-ds-badger "auto-gc" feature.

It will run a GC cycle made of multiple GC rounds (until it cannot GC more)
automatically. The behaviour is enabled by default in the configuration and
can be disabled by setting "gc_interval" to "0m". Hopefully this prevents
badger datastores from growing crazy.
@hsanjuan hsanjuan added this to the Release v0.13.4 milestone Jun 28, 2021
@hsanjuan
Copy link
Collaborator Author

@RubenKelevra would you like to test this?

@RubenKelevra
Copy link
Collaborator

Sure! Thanks for the ping. :)

@hsanjuan
Copy link
Collaborator Author

hsanjuan commented Jul 1, 2021

Merging as I want to tag an RC with this.

@hsanjuan hsanjuan merged commit c9783c0 into master Jul 1, 2021
@hsanjuan hsanjuan deleted the feat/badger-gc branch July 1, 2021 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants