From: Sage Weil Date: Sun, 20 Sep 2015 17:41:51 +0000 (-0400) Subject: os/newstore: set rocksdb default options X-Git-Tag: v10.0.1~39^2~9 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7f07e1ee22a18528a2745edad0ba8b9dba08ff7d;p=ceph.git os/newstore: set rocksdb default options max_write_buffer_number=16 min_write_buffer_number_to_merge=6 This cuts the amount of short-lived WAL data that gets rewritten by roughly a factor of 6. Signed-off-by: Sage Weil --- diff --git a/src/common/config_opts.h b/src/common/config_opts.h index dbad270a3b9b..1d6edd8d03c8 100644 --- a/src/common/config_opts.h +++ b/src/common/config_opts.h @@ -812,7 +812,7 @@ OPTION(memstore_page_size, OPT_U64, 64 << 10) OPTION(newstore_max_dir_size, OPT_U32, 1000000) OPTION(newstore_onode_map_size, OPT_U32, 1024) // onodes per collection OPTION(newstore_backend, OPT_STR, "rocksdb") -OPTION(newstore_backend_options, OPT_STR, "") +OPTION(newstore_backend_options, OPT_STR, "max_write_buffer_number=16,min_write_buffer_number_to_merge=6") OPTION(newstore_fail_eio, OPT_BOOL, true) OPTION(newstore_sync_io, OPT_BOOL, false) // perform initial io synchronously OPTION(newstore_sync_transaction, OPT_BOOL, false) // perform kv txn synchronously