Skip to content

Commit

Permalink
fix(rocksdb): open max files opts (#367)
Browse files Browse the repository at this point in the history
  • Loading branch information
EvolveArt authored Oct 28, 2024
1 parent 7175bb7 commit 9a28531
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
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
- code: refactor to use otel tracing instead of prometheus (removed mc-metrics, added mc-analytics)
- fix(version constants): 0.13.2 was mapped to wrong constants
- fix(compilation): devnet contract artifacts are not compiled by `cargo build` anymore
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 @@ -61,6 +61,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

0 comments on commit 9a28531

Please sign in to comment.