Skip to contentSkip to conversation

config: Add small note about default number of PGs

PATCH Applied Wido den Hollander 2 participants 2 messages Feb 9, 2013 – Feb 15, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 config: Add small note about default number of PGs

From: Wido den Hollander <[email protected]>

It's still not clear to end users this should go into the mon or global section of ceph.conf

Until this gets resolved document it here as well for the people who look up their settings in the source code.

---
 src/common/config_opts.h |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
src/common/config_opts.h +2 -2
index ce3bca2..0fc07a3 100644
@@ -317,8 +317,8 @@ OPTION(osd_max_rep, OPT_INT, 10)
 OPTION(osd_pool_default_crush_rule, OPT_INT, 0)
 OPTION(osd_pool_default_size, OPT_INT, 2)
 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)
-OPTION(osd_pool_default_pgp_num, OPT_INT, 8)
+OPTION(osd_pool_default_pg_num, OPT_INT, 8) // number of PGs for new pools. Configure in global or mon section of ceph.conf
+OPTION(osd_pool_default_pgp_num, OPT_INT, 8) // number of PGs for placement purposes. Should be equal to pg_num
 OPTION(osd_map_dedup, OPT_BOOL, true)
 OPTION(osd_map_cache_size, OPT_INT, 500)
 OPTION(osd_map_message_max, OPT_INT, 100)  // max maps per MOSDMap message
Signature · 1 line
1.7.9.5
Applied
#1 lore raw
Quoted 31 lines · Wido den Hollander

From: Wido den Hollander <[email protected]>

It's still not clear to end users this should go into the mon or global section of ceph.conf

Until this gets resolved document it here as well for the people who look up their settings in the source code.

---
 src/common/config_opts.h |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
src/common/config_opts.h +2 -3
index ce3bca2..0fc07a3 100644
@@ -317,8 +317,8 @@ OPTION(osd_max_rep, OPT_INT, 10)
 OPTION(osd_pool_default_crush_rule, OPT_INT, 0)
 OPTION(osd_pool_default_size, OPT_INT, 2)
 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)
-OPTION(osd_pool_default_pgp_num, OPT_INT, 8)
+OPTION(osd_pool_default_pg_num, OPT_INT, 8) // number of PGs for new pools. Configure in global or mon section of ceph.conf
+OPTION(osd_pool_default_pgp_num, OPT_INT, 8) // number of PGs for placement purposes. Should be equal to pg_num
 OPTION(osd_map_dedup, OPT_BOOL, true)
 OPTION(osd_map_cache_size, OPT_INT, 500)
 OPTION(osd_map_message_max, OPT_INT, 100)  // max maps per MOSDMap message
--

1.7.9.5

Quoted 1 line

--

Applied to master. Thanks!
-sam

Quoted 3 lines

To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html