]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
config: add new osd_max_write_size option.
authorGreg Farnum <gregory.farnum@dreamhost.com>
Thu, 3 Feb 2011 00:12:04 +0000 (16:12 -0800)
committerGreg Farnum <gregory.farnum@dreamhost.com>
Fri, 4 Feb 2011 20:55:08 +0000 (12:55 -0800)
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
src/config.cc
src/config.h

index 12ae42863d4214ddb4a6da9f666e9b49c5cc2253..10156a81f17e64e061b97d6ad78237414e007e80 100644 (file)
@@ -449,6 +449,7 @@ static struct config_option config_optionsp[] = {
        OPTION(osd_data, 0, OPT_STR, ""),
        OPTION(osd_journal, 0, OPT_STR, ""),
        OPTION(osd_journal_size, 0, OPT_INT, 0),         // in mb
+       OPTION(osd_max_write_size, 0, OPT_INT, 90),
        OPTION(osd_balance_reads, 0, OPT_BOOL, false),
        OPTION(osd_flash_crowd_iat_threshold, 0, OPT_INT, 0),
        OPTION(osd_flash_crowd_iat_alpha, 0, OPT_DOUBLE, 0.125),
index 13eaf2d740fba79e1d248aa0327962c3a85615c3..9de3412a10fd786112904587f693da86f0405ce6 100644 (file)
@@ -353,6 +353,7 @@ struct md_config_t {
   const char *osd_data;
   const char *osd_journal;
   int osd_journal_size;  // in mb
+  int osd_max_write_size; // in MB
   bool osd_balance_reads;
   int osd_flash_crowd_iat_threshold;  // flash crowd interarrival time threshold in ms
   double osd_flash_crowd_iat_alpha;