Skip to content

Bound RocksDB info log growth in data-hotblocks NET-818#74

Merged
mo4islona merged 1 commit into
masterfrom
net-818-bound-rocksdb-info-log-growth-in-data-hotblocks
Jun 10, 2026
Merged

Bound RocksDB info log growth in data-hotblocks NET-818#74
mo4islona merged 1 commit into
masterfrom
net-818-bound-rocksdb-info-log-growth-in-data-hotblocks

Conversation

@mo4islona

Copy link
Copy Markdown
Contributor

Sets max_log_file_size (10 MB) and keep_log_file_num (10) in the RocksDB options used by data-hotblocks, capping info log (LOG / LOG.old.*) disk usage at ~100 MB per database.

Previously these were left at RocksDB defaults (max_log_file_size = 0 — single unbounded LOG file, plus LOG.old.* rotated on every reopen with keep_log_file_num = 1000), which let info logs accumulate unboundedly — the incident cleanup removed ~111 GB from db-0 and ~107 GB from db-1.

Closes NET-818

🤖 Generated with Claude Code

Copilot AI review requested due to automatic review settings June 10, 2026 13:49

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR prevents unbounded RocksDB info log growth for data-hotblocks by configuring log rotation and retention in the shared DatabaseSettings RocksDB options, limiting LOG / LOG.old.* disk usage per DB.

Changes:

  • Set max_log_file_size to 10 MiB to force periodic info log rotation.
  • Set keep_log_file_num to 10 to cap retained rotated info logs (≈100 MiB total).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mo4islona mo4islona force-pushed the net-818-bound-rocksdb-info-log-growth-in-data-hotblocks branch from 9cb2a90 to 99357e1 Compare June 10, 2026 13:52
Set max_log_file_size and keep_log_file_num so LOG.old.* files stop
accumulating unboundedly on data-hotblocks pods. Configurable via
--rocksdb-max-log-file-size and --rocksdb-keep-log-file-num CLI
options (defaults: 10 MB, 10 files).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@mo4islona mo4islona force-pushed the net-818-bound-rocksdb-info-log-growth-in-data-hotblocks branch from 6c00ec4 to 077b455 Compare June 10, 2026 13:58
@mo4islona mo4islona requested a review from define-null June 10, 2026 13:59
@mo4islona mo4islona merged commit 99b0021 into master Jun 10, 2026
3 checks passed
@mo4islona mo4islona deleted the net-818-bound-rocksdb-info-log-growth-in-data-hotblocks branch June 10, 2026 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants