sofastack / sofa-jraft

A production-grade java implementation of RAFT consensus algorithm.
https://www.sofastack.tech/projects/sofa-jraft/
Apache License 2.0
3.57k stars 1.14k forks source link

RheaKV中的RocksDB为何不支持选择其他压缩方式和压缩风格? #965

Closed funky-eyes closed 1 year ago

funky-eyes commented 1 year ago

Your question

        if (!Platform.isWindows()) {
            opts.setCompressionType(CompressionType.LZ4_COMPRESSION) //
                .setCompactionStyle(CompactionStyle.LEVEL) //
                .optimizeLevelStyleCompaction();
        }

Your scenes

Describe your use scenes (why need this feature)

Your advice

Describe the advice or solution you'd like

Environment

funky-eyes commented 1 year ago

貌似可以靠 StorageOptionsFactory.registerRocksDBOptions 注册进去,这样就不会走default了?

killme2008 commented 1 year ago

是的,可以设置自己的选项。