Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RocksDB替换 #1167

Closed
yumc1991 opened this issue Dec 20, 2024 · 1 comment
Closed

RocksDB替换 #1167

yumc1991 opened this issue Dec 20, 2024 · 1 comment

Comments

@yumc1991
Copy link

Your question

文档提到,jraft默认使用rocksDB进行日志存储。是否支持替换为内存,比如java堆内存或者内存型数据库

Your scenes

使用rocksDB进行集群管理,其日志信息不需要做持久化

Your advice

Environment

  • SOFAJRaft version: 最新版本
  • JVM version (e.g. java -version): jdk17
  • OS version (e.g. uname -a): centos 7.9
  • Maven version: 3.9
  • IDE version: idea2024
@yumc1991 yumc1991 closed this as completed Jan 9, 2025
@fengjiachun
Copy link
Contributor

@yumc1991 抱歉回复的有一些晚了,目前有两个扩展实现(不过要强调一下,我最推荐的还是 rocksdb 的实现,稳定性和性能都有保障):
bdb-log-storage-impl

java-log-storage-impl

如果你要使用其中一个,只有把依赖引入你的 pom 即可,是基于 SPI 加载的(参考这里

如果你想扩展定制自己的 log storage,同样可以参考如上方式

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

No branches or pull requests

2 participants