Skip to content

feat: support dynamic configuration of RocksDB options via replica_envs #2388

@ruojieranyishen

Description

@ruojieranyishen

Feature Request
Is your feature request related to a problem? Please describe:

Currently, tuning RocksDB performance parameters (e.g., blob files, memtable settings, compaction settings) requires server restart or is not supported at all. This limits the ability to optimize storage performance dynamically based on workload characteristics.

Describe the feature you'd like:

Add support for dynamically configuring RocksDB options through replica_envs. This enables runtime adjustment of key RocksDB parameters without service restart.

Supported option categories:

Category Options
Blob File rocksdb.enable_blob_filesrocksdb.blob_file_starting_levelrocksdb.min_blob_sizerocksdb.blob_file_sizerocksdb.blob_garbage_collection_force_thresholdrocksdb.blob_garbage_collection_age_cutoffrocksdb.blob_compression_typerocksdb.enable_blob_garbage_collectionrocksdb.blob_compaction_readahead_sizerocksdb.prepopulate_blob_cache
Memtable rocksdb.inplace_update_num_locksrocksdb.memtable_prefix_bloom_size_ratiorocksdb.memtable_whole_key_filteringrocksdb.memtable_huge_page_size
Compaction rocksdb.target_file_size_multiplierrocksdb.max_compaction_bytesrocksdb.ignore_max_compaction_bytes_for_inputrocksdb.soft_pending_compaction_bytes_limitrocksdb.hard_pending_compaction_bytes_limit
Level Compaction rocksdb.level0_file_num_compaction_triggerrocksdb.level0_slowdown_writes_triggerrocksdb.level0_stop_writes_triggerrocksdb.max_bytes_for_level_multiplierrocksdb.max_bytes_for_level_baserocksdb.target_file_size_baserocksdb.max_write_buffer_numberrocksdb.arena_block_size
Other rocksdb.periodic_compaction_secondsrocksdb.bottommost_temperaturerocksdb.last_level_temperature

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions