From: xie xingguo Date: Mon, 3 Jun 2019 08:10:22 +0000 (+0800) Subject: mon/OSDMonitor: do clean_pg_upmaps the parallel way if necessary X-Git-Tag: v14.2.3~119^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8d85f933debf6c65481ac1a01feaa3f715ec2c1d;p=ceph.git mon/OSDMonitor: do clean_pg_upmaps the parallel way if necessary There could definitely be some certain cases we could reliably skip this kind of checking, but there is no easy way to separate those out. However, this is clearly the general way to do the massive pg upmap clean-up job more efficiently and hence should make sense in all cases. Signed-off-by: xie xingguo (cherry picked from commit c395f45f1f4d6f5e2b538a34730d9c92d8f9ae8b) --- diff --git a/src/common/legacy_config_opts.h b/src/common/legacy_config_opts.h index b1efe6eac660..91e72336111d 100644 --- a/src/common/legacy_config_opts.h +++ b/src/common/legacy_config_opts.h @@ -202,6 +202,7 @@ OPTION(mon_osd_cache_size, OPT_INT) // the size of osdmaps cache, not to rely o OPTION(mon_cpu_threads, OPT_INT) OPTION(mon_osd_mapping_pgs_per_chunk, OPT_INT) +OPTION(mon_clean_pg_upmaps_per_chunk, OPT_INT) OPTION(mon_osd_max_creating_pgs, OPT_INT) OPTION(mon_tick_interval, OPT_INT) OPTION(mon_session_timeout, OPT_INT) // must send keepalive or subscribe diff --git a/src/common/options.cc b/src/common/options.cc index fa1e80073529..a093f9b17e6c 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -1375,6 +1375,11 @@ std::vector