From 33b8ad810e30e4fb45769a932d9c878f6c945226 Mon Sep 17 00:00:00 2001 From: Loic Dachary Date: Wed, 5 Feb 2014 20:34:37 +0100 Subject: [PATCH] common: add osd_pool_erasure_code_stripe_width and document it. Signed-off-by: Loic Dachary --- doc/rados/configuration/pool-pg-config-ref.rst | 10 ++++++++++ src/common/config.h | 2 ++ src/common/config_opts.h | 1 + 3 files changed, 13 insertions(+) diff --git a/doc/rados/configuration/pool-pg-config-ref.rst b/doc/rados/configuration/pool-pg-config-ref.rst index 6c85a99843b0a..0d498995edece 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 d54642b2a6d48..242b467247c1b 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 0395fec937db5..0c6c4199890ea 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 -- 2.39.5