diff options
author | cos <cos> | 2023-08-29 21:52:02 +0200 |
---|---|---|
committer | cos <cos> | 2023-08-29 21:52:02 +0200 |
commit | c3d61daa626d5a93861e2e7c3428ef98edca888c (patch) | |
tree | 1d0068235dd1c2873d15d51c3c7df3a6ab0e33a8 | |
parent | 0c2cfda3ae923d9e922d5edf379e4d8976a52d4e (diff) | |
download | conduit-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.toml | 2 | ||||
-rw-r--r-- | src/database/abstraction/rocksdb.rs | 3 |
2 files changed, 4 insertions, 1 deletions
@@ -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 } |