summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcos <cos>2023-08-29 21:52:02 +0200
committercos <cos>2023-08-29 21:52:02 +0200
commitc3d61daa626d5a93861e2e7c3428ef98edca888c (patch)
tree1d0068235dd1c2873d15d51c3c7df3a6ab0e33a8
parent0c2cfda3ae923d9e922d5edf379e4d8976a52d4e (diff)
downloadconduit-topic/limit_info_logs.zip
wip: Hard-code info log sizetopic/limit_info_logs
https://docs.rs/rocksdb/latest/rocksdb/struct.Options.html https://github.com/facebook/rocksdb/wiki/RocksDB-Troubleshooting-Guide#information-logs
-rw-r--r--Cargo.toml2
-rw-r--r--src/database/abstraction/rocksdb.rs3
2 files changed, 4 insertions, 1 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 15dc1da..c5132c4 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -6,7 +6,7 @@ authors = ["timokoesters <timo@koesters.xyz>"]
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
}