eBay / Jungle

An embedded key-value store library specialized for building state machine and log store
Apache License 2.0
224 stars 54 forks source link

How to tune with parameters? #160

Open zjs1224522500 opened 1 year ago

zjs1224522500 commented 1 year ago

Can the parameters in Jungle correspond to those in RocksDB? Such as Memtable size, SSTable size, block size, background job number, direct i/o, cache size and etc.

Could you please give some advice on tuning the jungle db?

greensky00 commented 1 year ago

Tunable parameters are defined here: https://github.com/eBay/Jungle/blob/1470ed7148e51a67a5bd1b26c1952d09abe4c76e/include/libjungle/db_config.h#L103

It has configs corresponding to those in RocksDB (maxLogFileSize: memtable size, maxL0TableSize maxL1TableSize: sstable size, directIoOpt: direct io, ...).

zjs1224522500 commented 12 months ago

Thanks for your reply!

Are the parameters numFlusherThreads and numCompactorThreads corresponding to the max flush and compaction jobs in RocksDB?

Are there any recommended default parameters to compare the performance of RocksDB?

Could you suggest some parameters related to the experiments in the paper? We want to test the effect on some other workloads.