Skip to content

Commit

Permalink
HDDS-12220. Limit OM/SCM/Recon RocksDB max user log files total size (a…
Browse files Browse the repository at this point in the history
  • Loading branch information
Gargi-jais11 authored Feb 11, 2025
1 parent c5608ca commit 9f16b37
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,17 @@ public class RocksDBConfiguration {

@Config(key = "rocksdb.max.log.file.size",
type = ConfigType.SIZE,
defaultValue = "0MB",
defaultValue = "100MB",
tags = {OM, SCM, DATANODE},
description = "Maximum size of RocksDB application log file.")
private long rocksdbMaxLogFileSize = 0;
private long rocksdbMaxLogFileSize = 100 * 1024 * 1024;

@Config(key = "rocksdb.keep.log.file.num",
type = ConfigType.INT,
defaultValue = "1000",
defaultValue = "10",
tags = {OM, SCM, DATANODE},
description = "Maximum number of RocksDB application log files.")
private int rocksdbKeepLogFileNum = 1000;
private int rocksdbKeepLogFileNum = 10;

@Config(key = "rocksdb.writeoption.sync",
type = ConfigType.BOOLEAN,
Expand Down

0 comments on commit 9f16b37

Please sign in to comment.