Skip to content

Commit

Permalink
[fix](be) Prevent RocksDB from generating many large log files (#40035)
Browse files Browse the repository at this point in the history
  • Loading branch information
lide-reed authored Aug 28, 2024
1 parent 367d264 commit d3b29a6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions be/src/olap/olap_meta.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d3b29a6

Please sign in to comment.