This is an automated email from the ASF dual-hosted git repository.
lide pushed a commit to branch branch-1.2-lts
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-1.2-lts by this push:
new d3b29a62649 [fix](be) Prevent RocksDB from generating many large log
files (#40035)
d3b29a62649 is described below
commit d3b29a62649449ab5656a67ce77195a6519cbb6d
Author: lide <[email protected]>
AuthorDate: Wed Aug 28 17:15:53 2024 +0800
[fix](be) Prevent RocksDB from generating many large log files (#40035)
---
be/src/olap/olap_meta.cpp | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/be/src/olap/olap_meta.cpp b/be/src/olap/olap_meta.cpp
index 92b85b1d5b9..7f16c63db57 100644
--- a/be/src/olap/olap_meta.cpp
+++ b/be/src/olap/olap_meta.cpp
@@ -65,6 +65,12 @@ Status OlapMeta::init() {
options.IncreaseParallelism();
options.create_if_missing = true;
options.create_missing_column_families = true;
+
+ // set log file's size, num and level
+ options.max_log_file_size = 10485760;
+ options.keep_log_file_num = 10;
+ options.info_log_level = rocksdb::InfoLogLevel::WARN_LEVEL;
+
std::string db_path = _root_path + META_POSTFIX;
std::vector<ColumnFamilyDescriptor> column_families;
// default column family is required
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]