Skip to content

Commit

Permalink
fix: max open files rocksdb
Browse files Browse the repository at this point in the history
  • Loading branch information
EvolveArt committed Oct 28, 2024
1 parent ff695be commit 7b4bad2
Showing 1 changed file with 1 addition and 0 deletions.
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);
opts.set_keep_log_file_num(3);
opts.set_log_level(rocksdb::LogLevel::Warn);

Expand Down

0 comments on commit 7b4bad2

Please sign in to comment.