]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
filestore: default to writeahead journal, and no btrfs snaps
authorSage Weil <sage@newdream.net>
Wed, 21 Apr 2010 22:23:46 +0000 (15:23 -0700)
committerSage Weil <sage@newdream.net>
Wed, 21 Apr 2010 22:23:46 +0000 (15:23 -0700)
At least until btrfs snap deletion doesn't require a full commit (i.e. each
commit cycle doesn't do a commit for the snap creation AND another for the
old snap deletion).

src/config.cc
src/sample.ceph.conf

index 4ea68b65545d2cf110ed1b71f4b2d936fac375f5..54ecfeece36e13b2b2076c595253ee18b432f64d 100644 (file)
@@ -514,12 +514,12 @@ static struct config_option config_optionsp[] = {
        OPTION(filestore_fake_collections, 0, OPT_BOOL, false),
        OPTION(filestore_dev, 0, OPT_STR, 0),
        OPTION(filestore_btrfs_trans, 0, OPT_BOOL, true),
-       OPTION(filestore_btrfs_snap, 0, OPT_BOOL, true),
+       OPTION(filestore_btrfs_snap, 0, OPT_BOOL, false),
        OPTION(filestore_flusher, 0, OPT_BOOL, true),
        OPTION(filestore_flusher_max_fds, 0, OPT_INT, 512),
        OPTION(filestore_sync_flush, 0, OPT_BOOL, false),
-       OPTION(filestore_journal_parallel, 0, OPT_BOOL, true),
-       OPTION(filestore_journal_writeahead, 0, OPT_BOOL, false),
+       OPTION(filestore_journal_parallel, 0, OPT_BOOL, false),
+       OPTION(filestore_journal_writeahead, 0, OPT_BOOL, true),
        OPTION(filestore_queue_max_ops, 0, OPT_INT, 500),
        OPTION(filestore_queue_max_bytes, 0, OPT_INT, 100 << 20),
        OPTION(filestore_op_threads, 0, OPT_INT, 2),
index c535711fce51ea62aa07ebb2a45787b452e5a1cc..cd1132660f72562ffe6b1d0766718c57d5921f21 100644 (file)
        ; separate disk or partition.
        osd journal = /data/osd$id/journal
 
-       ; If you are NOT using btrfs, you need writeahead (not
-       ; parallel) journaling.
-       ;filestore journal parallel = 0
-       ;filestore journal writeahead = 1
-
 [osd0]
        host = delta