]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Doc: add temperature related stuff in documents and test scripts 4737/head
authorMingXin Liu <mingxinliu@ubuntukylin.com>
Thu, 21 May 2015 13:08:13 +0000 (21:08 +0800)
committerMingxin Liu <mingxinliu@ubuntukylin.com>
Wed, 11 Nov 2015 07:22:33 +0000 (15:22 +0800)
Signed-off-by: MingXin Liu <mingxinliu@ubuntukylin.com>
Reviewed-by: Li Wang <liwang@ubuntukylin.com>
doc/man/8/ceph.rst
doc/rados/operations/pools.rst
src/test/librados/tier.cc

index 37bb89726263103c273a80627b33bcd6528a1e4d..72d87dd0484bcae1c8aa205d1543b29e8d84c5ec 100644 (file)
@@ -884,7 +884,7 @@ Only for tiered pools::
        ceph osd pool get <poolname> hit_set_type|hit_set_period|hit_set_count|hit_set_fpp|
        target_max_objects|target_max_bytes|cache_target_dirty_ratio|cache_target_dirty_high_ratio|
        cache_target_full_ratio|cache_min_flush_age|cache_min_evict_age|
-       min_read_recency_for_promote
+       min_read_recency_for_promote|hit_set_grade_decay_rate|hit_set_search_last_n
 
 Only for erasure coded pools::
 
@@ -934,7 +934,8 @@ Usage::
        target_max_bytes|target_max_objects|cache_target_dirty_ratio|
        cache_target_dirty_high_ratio|
        cache_target_full_ratio|cache_min_flush_age|cache_min_evict_age|auid|
-       min_read_recency_for_promote|write_fadvise_dontneed
+       min_read_recency_for_promote|write_fadvise_dontneed|hit_set_grade_decay_rate|
+       hit_set_search_last_n
        <val> {--yes-i-really-mean-it}
 
 Subcommand ``set-quota`` sets object or byte limit on pool.
index 11bf1d4b30d9bc621ce37347cdf94941ca173f2d..0babf071c300dcb945e1a9ac0a0bf5fabbd49823 100644 (file)
@@ -441,6 +441,20 @@ You may set values for the following keys:
 
 .. _cache_min_flush_age:
 
+``hit_set_grade_decay_rate``
+:Description: Temperature decay rate between two successive hit_sets
+:Type: Integer
+:Valid Range: 0 - 100
+:Default: ``20``
+
+
+``hit_set_grade_search_last_n``
+:Description: Count at most N appearance in hit_sets for temperature calculation
+:Type: Integer
+:Valid Range: 0 - hit_set_count
+:Default: ``1``
+
+
 ``cache_min_flush_age``
 
 :Description: The time (in seconds) before the cache tiering agent will flush 
index 6c665d149cc5af17c66a67813183a4801701a49a..08f6a84f48abfcba089d9aa687cfcd21ba085619 100644 (file)
@@ -2406,6 +2406,12 @@ TEST_F(LibRadosTwoPoolsPP, PromoteOn2ndRead) {
   ASSERT_EQ(0, cluster.mon_command(
     set_pool_str(cache_pool_name, "min_read_recency_for_promote", 1),
     inbl, NULL, NULL));
+  ASSERT_EQ(0, cluster.mon_command(
+    set_pool_str(cache_pool_name, "hit_set_grade_decay_rate", 20),
+    inbl, NULL, NULL));
+  ASSERT_EQ(0, cluster.mon_command(
+    set_pool_str(cache_pool_name, "hit_set_search_last_n", 1),
+    inbl, NULL, NULL));
 
   // wait for maps to settle
   cluster.wait_for_latest_osdmap();
@@ -4759,6 +4765,12 @@ TEST_F(LibRadosTwoPoolsECPP, PromoteOn2ndRead) {
   ASSERT_EQ(0, cluster.mon_command(
     set_pool_str(cache_pool_name, "min_read_recency_for_promote", 1),
     inbl, NULL, NULL));
+  ASSERT_EQ(0, cluster.mon_command(
+    set_pool_str(cache_pool_name, "hit_set_grade_decay_rate", 20),
+    inbl, NULL, NULL));
+  ASSERT_EQ(0, cluster.mon_command(
+    set_pool_str(cache_pool_name, "hit_set_search_last_n", 1),
+    inbl, NULL, NULL));
 
   // wait for maps to settle
   cluster.wait_for_latest_osdmap();