One of the major benefits of rocksdb over leveldb is multithreaded
compaction. The default of 1 thread does not provide much benefit, and
is insufficient for heavy rgw workloads.
For high-write and delete omap workloads I've seen up to 8 compaction
threads be used. There's little overhead to having a higher max than
are needed, so set the default to 8.
Signed-off-by: Josh Durgin <jdurgin@redhat.com>
(cherry picked from commit
023fa810aa6b3af305e9027e3f717e54d1bb2712)
Conflicts:
src/common/options.cc (trivial)
// filestore
Option("filestore_rocksdb_options", Option::TYPE_STR, Option::LEVEL_ADVANCED)
- .set_default("compaction_readahead_size=2097152")
+ .set_default("max_background_compactions=8;compaction_readahead_size=2097152")
.set_description(""),
Option("filestore_omap_backend", Option::TYPE_STR, Option::LEVEL_ADVANCED)