Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

feat: Add SstFileManager support and upgrade RocksDB to v10.6.2#1048

Draft
emmanuel-keller wants to merge 3 commits into
rust-rocksdb:masterrust-rocksdb/rust-rocksdb:masterfrom
emmanuel-keller:sst-file-manageremmanuel-keller/rust-rocksdb:sst-file-managerCopy head branch name to clipboard
Draft

feat: Add SstFileManager support and upgrade RocksDB to v10.6.2#1048
emmanuel-keller wants to merge 3 commits into
rust-rocksdb:masterrust-rocksdb/rust-rocksdb:masterfrom
emmanuel-keller:sst-file-manageremmanuel-keller/rust-rocksdb:sst-file-managerCopy head branch name to clipboard

Conversation

@emmanuel-keller

@emmanuel-keller emmanuel-keller commented Oct 27, 2025

Copy link
Copy Markdown

This commit adds full support for RocksDB's SstFileManager, which enables
tracking and controlling SST file space usage and deletion rates.

Changes:

  • Add SstFileManager wrapper with complete API surface:

    • set_max_allowed_space_usage() - limit total SST file space
    • set_compaction_buffer_size() - reserve space for compactions
    • is_max_allowed_space_reached() - check if limit exceeded
    • is_max_allowed_space_reached_including_compactions() - check including ongoing compactions
    • get_total_size() - query total SST file size
    • set/get_delete_rate_bytes_per_second() - control deletion rate
    • set/get_max_trash_db_ratio() - manage trash ratio
    • get_total_trash_size() - query trash size
  • Add Options::set_sst_file_manager() to configure SstFileManager for database

  • Upgrade RocksDB submodule from v10.4.2 to v10.6.2:

    • Native support for rocksdb_options_set_sst_file_manager C API
    • Update rocksdb_lib_sources.txt with 332 source files (was 329)
  • Add comprehensive test coverage in tests/test_sst_file_manager.rs

This enables users to set maximum allowed space usage for SST files and
control their deletion rate, which is essential for managing disk space
in production deployments.

@emmanuel-keller emmanuel-keller changed the title Sst file manager feat: Add SstFileManager support and upgrade RocksDB to v10.6.2 Oct 27, 2025
@dentiny

dentiny commented Jan 7, 2026

Copy link
Copy Markdown

Would love to have this in the crate!

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.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.