From b5edb374605c02a670d8c627bc9b5bb2b66ca340 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 30 Nov 2021 18:18:31 -0500 Subject: [PATCH] mgr: limit changes to pg_num We need to avoid making drastic changes to pg_num that outpace pgp_num or else we will may hit the per-osd pg limits. Fixes: https://tracker.ceph.com/issues/53442 Signed-off-by: Sage Weil (cherry picked from commit 3b2a11249aff6ee608efc95212d6723df180cd07) Conflicts: src/common/options/mgr.yaml.in - old way of specifying config settings --- src/common/legacy_config_opts.h | 2 ++ src/common/options.cc | 5 +++++ src/mgr/DaemonServer.cc | 11 ++++++++++- 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/src/common/legacy_config_opts.h b/src/common/legacy_config_opts.h index d22061f8a7d53..c06d2f15304f1 100644 --- a/src/common/legacy_config_opts.h +++ b/src/common/legacy_config_opts.h @@ -305,6 +305,8 @@ OPTION(mon_debug_unsafe_allow_tier_with_nonempty_snaps, OPT_BOOL) OPTION(mon_osd_blocklist_default_expire, OPT_DOUBLE) // default one hour OPTION(mon_osd_crush_smoke_test, OPT_BOOL) +OPTION(mgr_max_pg_num_change, OPT_INT) + OPTION(paxos_stash_full_interval, OPT_INT) // how often (in commits) to stash a full copy of the PaxosService state OPTION(paxos_max_join_drift, OPT_INT) // max paxos iterations before we must first sync the monitor stores OPTION(paxos_propose_interval, OPT_DOUBLE) // gather updates for this long before proposing a map update diff --git a/src/common/options.cc b/src/common/options.cc index 89f3418f66d81..86535c128a48a 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -5482,6 +5482,11 @@ std::vector