From: Loic Dachary Date: Wed, 5 Feb 2014 19:34:37 +0000 (+0100) Subject: common: add osd_pool_erasure_code_stripe_width X-Git-Tag: v0.78~221^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=33b8ad810e30e4fb45769a932d9c878f6c945226;p=ceph.git common: add osd_pool_erasure_code_stripe_width and document it. Signed-off-by: Loic Dachary --- diff --git a/doc/rados/configuration/pool-pg-config-ref.rst b/doc/rados/configuration/pool-pg-config-ref.rst index 6c85a99843b0..0d498995edec 100644 --- a/doc/rados/configuration/pool-pg-config-ref.rst +++ b/doc/rados/configuration/pool-pg-config-ref.rst @@ -73,6 +73,16 @@ Ceph configuration file. :Default: ``0`` +``osd pool erasure code stripe width`` + +:Description: Sets the desired size, in bytes, of an object stripe on every + erasure coded pools. Every object if size S will be stored as + N stripes and each stripe will be encoded/decoded individually. + +:Type: Unsigned 32-bit Integer +:Default: ``4096`` + + ``osd pool default size`` :Description: Sets the number of replicas for objects in the pool. The default diff --git a/src/common/config.h b/src/common/config.h index d54642b2a6d4..242b467247c1 100644 --- a/src/common/config.h +++ b/src/common/config.h @@ -38,6 +38,8 @@ enum { #define OSD_REP_SPLAY 1 #define OSD_REP_CHAIN 2 +#define OSD_POOL_ERASURE_CODE_STRIPE_WIDTH 4096 + struct config_option; class CephContext; diff --git a/src/common/config_opts.h b/src/common/config_opts.h index 0395fec937db..0c6c4199890e 100644 --- a/src/common/config_opts.h +++ b/src/common/config_opts.h @@ -396,6 +396,7 @@ OPTION(osd_pgp_bits, OPT_INT, 6) // bits per osd OPTION(osd_crush_chooseleaf_type, OPT_INT, 1) // 1 = host OPTION(osd_pool_default_crush_rule, OPT_INT, -1) // deprecated for osd_pool_default_crush_replicated_ruleset OPTION(osd_pool_default_crush_replicated_ruleset, OPT_INT, CEPH_DEFAULT_CRUSH_REPLICATED_RULESET) +OPTION(osd_pool_erasure_code_stripe_width, OPT_U32, OSD_POOL_ERASURE_CODE_STRIPE_WIDTH) // in bytes OPTION(osd_pool_default_size, OPT_INT, 3) OPTION(osd_pool_default_min_size, OPT_INT, 0) // 0 means no specific default; ceph will use size-size/2 OPTION(osd_pool_default_pg_num, OPT_INT, 8) // number of PGs for new pools. Configure in global or mon section of ceph.conf