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(rocksdb): open max files opts #367

Merged
merged 3 commits into from
Oct 28, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## Next release

- fix(rocksdb): update max open files opt
- fix(version constants): 0.13.2 was mapped to wrong constants
- fix(compilation): devnet contract artifacts are not compiled by `cargo build` anymore
- feat: add fgw get_block_traces
Expand Down
1 change: 1 addition & 0 deletions crates/client/db/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ pub fn open_rocksdb(path: &Path, create: bool) -> Result<Arc<DB>> {
opts.set_max_subcompactions(cores as _);

opts.set_max_log_file_size(1 * MiB);
opts.set_max_open_files(512); // 512 is the value used by substrate for reference
opts.set_keep_log_file_num(3);
opts.set_log_level(rocksdb::LogLevel::Warn);

Expand Down
Loading