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

Add BadgerDB garbage collection. #371

Merged
merged 8 commits into from
Mar 18, 2024
Merged

Add BadgerDB garbage collection. #371

merged 8 commits into from
Mar 18, 2024

Conversation

werbenhu
Copy link
Member

@werbenhu werbenhu commented Feb 27, 2024

For issues #370, #369, and #363. I've tested it myself under the condition of setting the log file size to 1MB. With 1000 clients repeatedly connecting and disconnecting with the same client ID, if GC is not enabled, the log file continues to grow indefinitely. Enabling the GC loop resolves this issue.

@coveralls
Copy link

coveralls commented Feb 27, 2024

Pull Request Test Coverage Report for Build 8318670794

Details

  • 17 of 18 (94.44%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.01%) to 98.709%

Changes Missing Coverage Covered Lines Changed/Added Lines %
hooks/storage/badger/badger.go 17 18 94.44%
Totals Coverage Status
Change from base Build 8318667974: -0.01%
Covered Lines: 5582
Relevant Lines: 5655

💛 - Coveralls

@werbenhu werbenhu changed the title For issues #370, #369, and #363, add BadgerDB garbage collection. Add BadgerDB garbage collection. Feb 27, 2024
@mochi-co
Copy link
Collaborator

mochi-co commented Mar 9, 2024

@werbenhu @dgduncan This generally looks like a great enhancement to me (on my phone at least), and I'm going to try to look at it as soon as I can. Currently I am on the other side of the world (Tasmania) and I've had very little signal or internet for the last couple of weeks. I will be returning to more populated areas in a week. I also hope to finalise some of the other improvements we've discussed like the file based config. Thank you for keeping everything going!

Copy link
Collaborator

@mochi-co mochi-co left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This all looks very nice to me 👍🏻

@mochi-co mochi-co merged commit 26720c2 into mochi-mqtt:main Mar 18, 2024
3 checks passed
@OpenJarvisAI
Copy link

How to use it?

Can 't ust make it a default config???

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

5 participants