braft supports rocksdb as the log storage engine
- Dominant language
- C++
- Stars
- 4.2k
- Forks
- 923
- PR merge metrics
- No merged PRs in 30d
Description
当前braft使用leveldb 存储 raft的log等数据, 有没有考虑支持 rocksdb 作为存储引擎.
首先我先说一下提出这个问题的原因:
1. rocksdb 和 leveldb 在读写接口上差距很小, 如果要实现改动不大
2. 很多数据库都会采用 rocksdb作为存储引擎, 如果想使用 braft 支持分布式, 还需要多一个leveldb的依赖,如果braft支持rocksdb, 那么可以少一个依赖
3. rocksdb的性能大多数场景下会强于leveldb, 替换后可能会提升braft的性能
不知道 有没有实现这个 feature 的计划
Contributor guide
No contributing guide indexed for this repository
Research direction
No files, tests, or entry points are named. Start by locating braft's current LevelDB log-storage integration, then assess how RocksDB could be selected as an alternative without retaining an unnecessary dependency. Done should include an agreed configuration or API, dependency behavior, and tests covering log storage with RocksDB.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- databases, distributed-systems
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100