Skip to content

Comments

[FLUSS] Support shared RocksDB block cache across KV tablets#2627

Open
platinumhamburg wants to merge 1 commit intoapache:mainfrom
platinumhamburg:shared-block-cache
Open

[FLUSS] Support shared RocksDB block cache across KV tablets#2627
platinumhamburg wants to merge 1 commit intoapache:mainfrom
platinumhamburg:shared-block-cache

Conversation

@platinumhamburg
Copy link
Contributor

@platinumhamburg platinumhamburg commented Feb 10, 2026

Introduce a TabletServer-level shared LRUCache for all KV tablets, controlled by kv.rocksdb.shared-block-cache.enabled (default: off).

  • Add kv.rocksdb.shared-block-cache.enabled and .size config options
  • KvManager creates/manages shared cache lifecycle
  • RocksDBResourceContainer accepts optional external cache
  • Adapt RocksDBStatistics to avoid double-counting shared cache in metrics
  • TabletServerMetricGroup includes shared cache usage once in total
  • Update config and metrics documentation

Purpose

Linked issue: close #1319

Brief change log

Tests

API and Format

Documentation

Introduce a TabletServer-level shared LRUCache for all KV tablets,
controlled by kv.rocksdb.shared-block-cache.enabled (default: off).

- Add kv.rocksdb.shared-block-cache.enabled and .size config options
- KvManager creates/manages shared cache lifecycle
- RocksDBResourceContainer accepts optional external cache
- Adapt RocksDBStatistics to avoid double-counting shared cache in metrics
- TabletServerMetricGroup includes shared cache usage once in total
- Update config and metrics documentation
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.

[KV] Enable shared block cache for RocksDB instances

1 participant