From: MingXin Liu Date: Thu, 21 May 2015 13:03:53 +0000 (+0800) Subject: Mon: add temperature support for existing cache related commands X-Git-Tag: v10.0.1~72^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e578926003351486b27be67ae01b918639cc9366;p=ceph.git Mon: add temperature support for existing cache related commands Signed-off-by: MingXin Liu Reviewed-by: Li Wang --- diff --git a/src/common/config_opts.h b/src/common/config_opts.h index 1f4727b35b9..80f50cbb81c 100644 --- a/src/common/config_opts.h +++ b/src/common/config_opts.h @@ -597,6 +597,8 @@ OPTION(osd_tier_default_cache_hit_set_period, OPT_INT, 1200) OPTION(osd_tier_default_cache_hit_set_type, OPT_STR, "bloom") OPTION(osd_tier_default_cache_min_read_recency_for_promote, OPT_INT, 1) // number of recent HitSets the object must appear in to be promoted (on read) OPTION(osd_tier_default_cache_min_write_recency_for_promote, OPT_INT, 1) // number of recent HitSets the object must appear in to be promoted (on write) +OPTION(osd_tier_default_cache_hit_set_grade_decay_rate, OPT_INT, 20) +OPTION(osd_tier_default_cache_hit_set_search_last_n, OPT_INT, 1) OPTION(osd_map_dedup, OPT_BOOL, true) OPTION(osd_map_max_advance, OPT_INT, 150) // make this < cache_size! diff --git a/src/mon/OSDMonitor.cc b/src/mon/OSDMonitor.cc index 6df0b84d07e..a22ab953ade 100644 --- a/src/mon/OSDMonitor.cc +++ b/src/mon/OSDMonitor.cc @@ -7205,6 +7205,8 @@ done: ntp->hit_set_period = g_conf->osd_tier_default_cache_hit_set_period; ntp->min_read_recency_for_promote = g_conf->osd_tier_default_cache_min_read_recency_for_promote; ntp->min_write_recency_for_promote = g_conf->osd_tier_default_cache_min_write_recency_for_promote; + ntp->hit_set_grade_decay_rate = g_conf->osd_tier_default_cache_hit_set_grade_decay_rate; + ntp->hit_set_search_last_n = g_conf->osd_tier_default_cache_hit_set_search_last_n; ntp->hit_set_params = hsp; ntp->target_max_bytes = size; ss << "pool '" << tierpoolstr << "' is now (or already was) a cache tier of '" << poolstr << "'";