brianfrankcooper / YCSB

Yahoo! Cloud Serving Benchmark
Apache License 2.0
4.94k stars 2.24k forks source link

How do I configure rocksdb to enable zenfs? #1651

Open Watermelon12345 opened 1 year ago

Watermelon12345 commented 1 year ago

How do I configure rocksdb to enable zenfs?

Our rocksdb uses zenfs as storage backend. At present, we have been able to package rocksdb integrated with zenfs into a jar package and use ycsb for testing.

There are two issues to determine here:

  1. How to configure and enable zenfs?
  2. How to confirm that the current data is written through zenfs?

We have made the following configuration in rocksdb_optionsfile, it doesn't seem to work. [ [DBOptions] fs_uri=zenfs://dev:nvme0n1 ]

Looking forward to your reply. thanks.

busbey commented 1 year ago

you need the rocksdb.optionsfile property to point to the options file location. that addition landed just after our last release, so it isn't in a released version yet.

you up for testing out rocksdb in a release candidate?

Watermelon12345 commented 1 year ago

Thanks for your reply.

The version of ycsb we used for testing is ycsb-rocksdb-binding-0.17.0. how do I configure environment variable (such as Zenfs) ?