]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: compact leveldb on bootstrap
authorSage Weil <sage@inktank.com>
Mon, 29 Apr 2013 17:51:00 +0000 (10:51 -0700)
committerSage Weil <sage@inktank.com>
Mon, 29 Apr 2013 22:45:39 +0000 (15:45 -0700)
This is an opportunistic time to optimize our local data since we are
out of quorum.  It serves as a safety net for cases where leveldb's
automatic compaction doesn't work quite right and lets things get out
of hand.

Anecdotally we have seen stores in excess of 30GB compact down to a few
hundred KB.  And a 9GB store compact down to 900MB in only 1 minute.

Signed-off-by: Sage Weil <sage@inktank.com>
src/common/config_opts.h

index 348b1cd3fec91c6de59e0a1e665e3864695a080f..c8e634f46ac6f5135267dfa1c348df1a5b02485a 100644 (file)
@@ -125,7 +125,7 @@ OPTION(mon_data, OPT_STR, "/var/lib/ceph/mon/$cluster-$id")
 OPTION(mon_initial_members, OPT_STR, "")    // list of initial cluster mon ids; if specified, need majority to form initial quorum and create new cluster
 OPTION(mon_sync_fs_threshold, OPT_INT, 5)   // sync() when writing this many objects; 0 to disable.
 OPTION(mon_compact_on_start, OPT_BOOL, false)  // compact leveldb on ceph-mon start
-OPTION(mon_compact_on_bootstrap, OPT_BOOL, true)  // trigger leveldb compaction on bootstrap
+OPTION(mon_compact_on_bootstrap, OPT_BOOL, false)  // trigger leveldb compaction on bootstrap
 OPTION(mon_tick_interval, OPT_INT, 5)
 OPTION(mon_subscribe_interval, OPT_DOUBLE, 300)
 OPTION(mon_osd_laggy_halflife, OPT_INT, 60*60)        // (seconds) how quickly our laggy estimations decay