The next commit will remove mon_osd_max_creating_pgs as it doesn't
behave correctly in the context of OSDMonitor. Create a new mgr
specific config to replace it here.
Signed-off-by: Samuel Just <sjust@redhat.com>
services:
- mgr
with_legacy: true
+- name: mgr_max_pg_creating
+ type: uint
+ level: advanced
+ desc: bound on max creating pgs when acting to create more pgs
+ default: 1024
+ services:
+ - mgr
- name: mgr_module_path
type: str
level: advanced
void DaemonServer::adjust_pgs()
{
dout(20) << dendl;
- unsigned max = std::max<int64_t>(1, g_conf()->mon_osd_max_creating_pgs);
+ uint64_t max = std::max<uint64_t>(
+ 1,
+ g_conf().get_val<uint64_t>("mgr_max_pg_creating"));
double max_misplaced = g_conf().get_val<double>("target_max_misplaced_ratio");
bool aggro = g_conf().get_val<bool>("mgr_debug_aggressive_pg_num_changes");