From 4ca02952a982e7478cb248741d74c7db8ce9a95f Mon Sep 17 00:00:00 2001 From: 0xevolve Date: Mon, 28 Oct 2024 11:19:08 +0000 Subject: [PATCH 1/2] fix: open max files --- crates/client/db/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/client/db/src/lib.rs b/crates/client/db/src/lib.rs index 7dba6e4a4..2cfec034f 100644 --- a/crates/client/db/src/lib.rs +++ b/crates/client/db/src/lib.rs @@ -62,6 +62,7 @@ pub fn open_rocksdb(path: &Path, create: bool) -> Result> { 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); From 0078a0bc8ccedb04375a64445fabe51701e0f157 Mon Sep 17 00:00:00 2001 From: 0xevolve Date: Mon, 28 Oct 2024 11:23:22 +0000 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d0a428b65..f9d3f86ee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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