From: Kefu Chai Date: Tue, 31 Oct 2017 10:42:51 +0000 (+0800) Subject: mon/PGMap: use new-style options X-Git-Tag: v12.2.3~198^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f0914619a5cc0d9108c4c6efd0f3464ec4fd0fff;p=ceph.git mon/PGMap: use new-style options Signed-off-by: Kefu Chai (cherry picked from commit 7a23097c34c35c1bf6ec09e86ed3acbb0807068c) Conflicts: src/common/legacy_config_opts.h src/mon/PGMap.cc: in 729a089, PGMap::get_health() is removed from master branch, but in luminous, this function is still around for backward compatibility. but that function is still using the old-style options. in this change, i choose to keep some of the old-style options removed in the cherry-picked cleanup to appease PGMap::get_health(), instead of migrating all of them to the new-style because of less efforts. --- diff --git a/src/common/legacy_config_opts.h b/src/common/legacy_config_opts.h index 44bd6b104349..0277a1700b23 100644 --- a/src/common/legacy_config_opts.h +++ b/src/common/legacy_config_opts.h @@ -222,7 +222,6 @@ OPTION(mon_osd_prime_pg_temp, OPT_BOOL) // prime osdmap with pg mapping changes OPTION(mon_osd_prime_pg_temp_max_time, OPT_FLOAT) // max time to spend priming OPTION(mon_osd_prime_pg_temp_max_estimate, OPT_FLOAT) // max estimate of pg total before we do all pgs in parallel OPTION(mon_osd_pool_ec_fast_read, OPT_BOOL) // whether turn on fast read on the pool or not -OPTION(mon_stat_smooth_intervals, OPT_INT) // smooth stats over last N PGMap maps OPTION(mon_election_timeout, OPT_FLOAT) // on election proposer, max waiting time for all ACKs OPTION(mon_lease, OPT_FLOAT) // lease interval OPTION(mon_lease_renew_interval_factor, OPT_FLOAT) // on leader, to renew the lease @@ -233,7 +232,6 @@ OPTION(mon_clock_drift_allowed, OPT_FLOAT) // allowed clock drift between monito OPTION(mon_clock_drift_warn_backoff, OPT_FLOAT) // exponential backoff for clock drift warnings OPTION(mon_timecheck_interval, OPT_FLOAT) // on leader, timecheck (clock drift check) interval (seconds) OPTION(mon_timecheck_skew_interval, OPT_FLOAT) // on leader, timecheck (clock drift check) interval when in presence of a skew (seconds) -OPTION(mon_pg_stuck_threshold, OPT_INT) // number of seconds after which pgs can be considered stuck inactive, unclean, etc (see doc/control.rst under dump_stuck for more info) OPTION(mon_pg_min_inactive, OPT_U64) // the number of PGs which have to be inactive longer than 'mon_pg_stuck_threshold' before health goes into ERR. 0 means disabled, never go into ERR. OPTION(mon_pg_warn_min_per_osd, OPT_INT) // min # pgs per (in) osd before we warn the admin OPTION(mon_pg_warn_max_object_skew, OPT_FLOAT) // max skew few average in objects per pg @@ -274,7 +272,6 @@ OPTION(mon_health_to_clog, OPT_BOOL) OPTION(mon_health_to_clog_interval, OPT_INT) OPTION(mon_health_to_clog_tick_interval, OPT_DOUBLE) OPTION(mon_health_preluminous_compat, OPT_BOOL) -OPTION(mon_health_max_detail, OPT_INT) // max detailed pgs to report in health detail OPTION(mon_data_avail_crit, OPT_INT) OPTION(mon_data_avail_warn, OPT_INT) OPTION(mon_data_size_warn, OPT_U64) // issue a warning when the monitor's data store goes over 15GB (in bytes) diff --git a/src/common/options.cc b/src/common/options.cc index 71f58a35f1b7..72b88588868d 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -987,9 +987,11 @@ std::vector