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(db): max rocksdb LOG files count and size and add more memory metrics #345

Merged
merged 3 commits into from
Oct 15, 2024

Conversation

cchudant
Copy link
Member

@cchudant cchudant commented Oct 15, 2024

Pull Request type

  • Bugfix

What is the current behavior?

rocksdb's LOG file is unbounded and takes wayyyy too much space in production

What is the new behavior?

limit the number of rocksdb LOG files, and their size.
Set the rocksdb level to WARN, which will print a summary of all column stats (~100Ko) at startup only, whereas the INFO level will print it very regularily.
Plus, add a few more memtable metrics to prometheus endpoint.

Does this introduce a breaking change?

No

@cchudant cchudant marked this pull request as ready for review October 15, 2024 11:43
Copy link
Member

@antiyro antiyro left a comment

Choose a reason for hiding this comment

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

lgtm thanks lets see how it works in full mode

@antiyro antiyro merged commit b8b57df into main Oct 15, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants