]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Mon: add temperature support for existing cache related commands
authorMingXin Liu <mingxinliu@ubuntukylin.com>
Thu, 21 May 2015 13:03:53 +0000 (21:03 +0800)
committerMingxin Liu <mingxinliu@ubuntukylin.com>
Wed, 11 Nov 2015 07:22:31 +0000 (15:22 +0800)
Signed-off-by: MingXin Liu <mingxinliu@ubuntukylin.com>
Reviewed-by: Li Wang <liwang@ubuntukylin.com>
src/common/config_opts.h
src/mon/OSDMonitor.cc

index 1f4727b35b927c033842b853e2cd100ed6014164..80f50cbb81cc7e7967014db0132b8d27024bafff 100644 (file)
@@ -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!
index 6df0b84d07e6bf9c110e6d9e4ef169bd408c844f..a22ab953ade63ff0d0f1e60a653b118679ba84c6 100644 (file)
@@ -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 << "'";