Skip to content

Commit 99357e1

Browse files
mo4islonaclaude
andcommitted
Bound RocksDB info log growth
Set max_log_file_size (10 MB) and keep_log_file_num (10) so LOG.old.* files stop accumulating unboundedly on data-hotblocks pods. Co-Authored-By: Claude Fable 5 <[email protected]>
1 parent f6ea04e commit 99357e1

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • crates/storage/src/db

crates/storage/src/db/db.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ impl DatabaseSettings {
8080
options.create_if_missing(true);
8181
options.create_missing_column_families(true);
8282
options.set_wal_compression_type(rocksdb::DBCompressionType::Zstd);
83+
// Bound info log (LOG, LOG.old.*) growth to ~100 MB
84+
options.set_max_log_file_size(10 * 1024 * 1024);
85+
options.set_keep_log_file_num(10);
8386
if self.with_rocksdb_stats {
8487
options.enable_statistics();
8588
}

0 commit comments

Comments
 (0)