From: Piotr Dałek Date: Wed, 13 Dec 2017 15:13:33 +0000 (+0100) Subject: options, Mon: monitor the snap trim queues X-Git-Tag: v13.0.2~572^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8412a65e0e6f610fb39430d8f65e561b6dbda13f;p=ceph.git options, Mon: monitor the snap trim queues If new option "mon osd snap trim queue warn on" is set to value larger than 0 (32768 by default), cluster will go into HEALTH_WARN state once any pg has a snap trim queue larger than that value. This can be used as an indicator of snaptrimmer not keeping up and disk space not being reclaimed fast enough. Warning message will tell how many pgs are affected. Signed-off-by: Piotr Dałek --- diff --git a/src/common/legacy_config_opts.h b/src/common/legacy_config_opts.h index c82649836f82..c5c0d6d8cd43 100644 --- a/src/common/legacy_config_opts.h +++ b/src/common/legacy_config_opts.h @@ -286,6 +286,7 @@ OPTION(mon_inject_sync_get_chunk_delay, OPT_DOUBLE) // inject N second delay on OPTION(mon_osd_force_trim_to, OPT_INT) // force mon to trim maps to this point, regardless of min_last_epoch_clean (dangerous) OPTION(mon_mds_force_trim_to, OPT_INT) // force mon to trim mdsmaps to this point (dangerous) OPTION(mon_mds_skip_sanity, OPT_BOOL) // skip safety assertions on FSMap (in case of bugs where we want to continue anyway) +OPTION(mon_osd_snap_trim_queue_warn_on, OPT_INT) // monitor debug options OPTION(mon_debug_deprecated_as_obsolete, OPT_BOOL) // consider deprecated commands as obsolete diff --git a/src/common/options.cc b/src/common/options.cc index 245240efed8d..cb45f68509bb 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -1324,6 +1324,11 @@ std::vector