-
Notifications
You must be signed in to change notification settings - Fork 236
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
Built-in indexer RocksDB filling disk with logs #3730
Labels
t:bug
Type: This doesn't seem right.
Comments
ref: #3696 |
bors bot
added a commit
that referenced
this issue
Dec 6, 2022
3735: feat: indexer db simple configuration r=zhangsoledad a=zhangsoledad <!-- Thank you for contributing to nervosnetwork/ckb! If you haven't already, please read [CONTRIBUTING](https://github.com/nervosnetwork/ckb/blob/develop/CONTRIBUTING.md) document. If you're unsure about anything, just ask; somebody should be along to answer within a day or two. PR Title Format: 1. module [, module2, module3]: what's changed 2. *: what's changed --> ### What problem does this PR solve? Resolve configuration issues with Indexer db #3696 #3730 ### What is changed and how it works? the RocksDB debug log is not really of much use to the average user, just setting keep_log_file_num to 1 (0 is not allowed). only maintain a single LOG file which is probably the cleanest and simplest solution. I don't introduce `FullOptions::load_from_file` here, because `FullOptions::load_from_file` is also a legacy dirty patch, and users don't want to see all the configuration items of rocksdb in front of them and have no idea what they can do, so for now we'll just provide the simplest and most useful options. ### Related changes - PR to update `owner/repo`: - Need to cherry-pick to the release branch ### Check List <!--REMOVE the items that are not applicable--> Tests <!-- At least one of them must be included. --> - Unit test - Integration test ### Release note <!-- Choose from None, Title Only and Note. Bugfixes or new features need a release note. --> ```release-note Title Only: Include only the PR title in the release note. ``` Co-authored-by: zhangsoledad <[email protected]>
Closing it since #3735 is merged. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Report
The RocksDB for the built-in indexer is filling my disk with logs. Under
~/.ckb/data/indexer/secondary_path/
I had 25 GB accumulated in theLOG*
files. I also had about 5 GB in the logs under~/.ckb/data/indexer/store/
.On the core RocksDB, I was able to control this by setting
keep_log_file_num=1
in the options file (~/.ckb/default.db-options
). Unfortunately I found no such file for the built-in indexer.Please provide a way to limit the indexer RocksDB's log files size.
Environment
The text was updated successfully, but these errors were encountered: