From c3d61daa626d5a93861e2e7c3428ef98edca888c Mon Sep 17 00:00:00 2001 From: cos Date: Tue, 29 Aug 2023 21:52:02 +0200 Subject: wip: Hard-code info log size https://docs.rs/rocksdb/latest/rocksdb/struct.Options.html https://github.com/facebook/rocksdb/wiki/RocksDB-Troubleshooting-Guide#information-logs --- Cargo.toml | 2 +- src/database/abstraction/rocksdb.rs | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 15dc1da..c5132c4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,7 +6,7 @@ authors = ["timokoesters "] homepage = "https://conduit.rs" repository = "https://gitlab.com/famedly/conduit" readme = "README.md" -version = "0.6.0" +version = "0.6.1-cos0" edition = "2021" # When changing this, make sure to update the `flake.lock` file by running diff --git a/src/database/abstraction/rocksdb.rs b/src/database/abstraction/rocksdb.rs index b40c439..5835804 100644 --- a/src/database/abstraction/rocksdb.rs +++ b/src/database/abstraction/rocksdb.rs @@ -59,6 +59,9 @@ fn db_options(max_open_files: i32, rocksdb_cache: &rocksdb::Cache) -> rocksdb::O let prefix_extractor = rocksdb::SliceTransform::create_fixed_prefix(1); db_opts.set_prefix_extractor(prefix_extractor); + db_opts.set_max_log_file_size(1024*1024*256); + db_opts.set_keep_log_file_num(3); + db_opts } -- cgit v1.2.3