]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common: add osd_pool_erasure_code_stripe_width
authorLoic Dachary <loic@dachary.org>
Wed, 5 Feb 2014 19:34:37 +0000 (20:34 +0100)
committerLoic Dachary <loic@dachary.org>
Wed, 5 Feb 2014 19:40:14 +0000 (20:40 +0100)
and document it.

Signed-off-by: Loic Dachary <loic@dachary.org>
doc/rados/configuration/pool-pg-config-ref.rst
src/common/config.h
src/common/config_opts.h

index 6c85a99843b0ad194a45ac3465eb0379ee781ba8..0d498995edeced8d68be71fba9d3db93afee08a8 100644 (file)
@@ -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 
index d54642b2a6d48a39b56b0e5a122d4a1e32887df6..242b467247c1bdefac464d1d6dbb5d5408e135fb 100644 (file)
@@ -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;
 
index 0395fec937db578407bb360a8135fb82a2fcd1ef..0c6c4199890ea2d433615d220afbc1c453703e76 100644 (file)
@@ -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