@@ -179,5 +179,9 @@ the cache tier::
ceph osd pool set foo-hot cache_min_evict_age 1800 # 30 minutes
+You can specify the objects evict policy(cache-measure),when cache-measure is set as atime
+the most recent objects are hotter than others,if use temperature as measure agent will consider
+both access time and frequency::
+ ceph osd tier cache-measure foo-hot <atime|temperature>
@@ -45,7 +45,7 @@ Synopsis
| **ceph** **osd** **pool** [ *create* \| *delete* \| *get* \| *get-quota* \| *ls* \| *mksnap* \| *rename* \| *rmsnap* \| *set* \| *set-quota* \| *stats* ] ...
-| **ceph** **osd** **tier** [ *add* \| *add-cache* \| *cache-mode* \| *remove* \| *remove-overlay* \| *set-overlay* ] ...
+| **ceph** **osd** **tier** [ *add* \| *add-cache* \| *cache-mode* \| *cache-measure* \| *remove* \| *remove-overlay* \| *set-overlay* ] ...
| **ceph** **pg** [ *debug* \| *deep-scrub* \| *dump* \| *dump_json* \| *dump_pools_json* \| *dump_stuck* \| *force_create_pg* \| *getmap* \| *ls* \| *ls-by-osd* \| *ls-by-pool* \| *ls-by-primary* \| *map* \| *repair* \| *scrub* \| *send_pg_creates* \| *set_full_ratio* \| *set_nearfull_ratio* \| *stat* ] ...
@@ -878,7 +878,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_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
Only for erasure coded pools::
@@ -927,7 +927,7 @@ Usage::
hit_set_type|hit_set_period|hit_set_count|hit_set_fpp|debug_fake_ec_pool|
target_max_bytes|target_max_objects|cache_target_dirty_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
<val> {--yes-i-really-mean-it}
Subcommand ``set-quota`` sets object or byte limit on pool.
@@ -1049,6 +1049,12 @@ Usage::
ceph osd tier cache-mode <poolname> none|writeback|forward|readonly|
readforward|readproxy
+Subcommand ``cache-measure`` specifies the caching measure for cache tier <pool>.
+
+Usage::
+
+ ceph osd tier cache-measure <poolname> atime|temperature
+
Subcommand ``remove`` removes the tier <tierpool> (the second one) from base pool
<pool> (the first one).
@@ -374,6 +374,13 @@ You may set values for the following keys:
:Example: ``1000000`` #1M objects
+``hit_set_grade_decay_rate``
+:Description: Temperature grade decay rate between a hit_set and the follow one
+:Type: Integer
+:Valid Range: 0 - 100
+:Default: ``50``
+
+
``cache_min_flush_age``
:Description: The time (in seconds) before the cache tiering agent will flush
@@ -415,6 +415,20 @@ function test_tiering()
ceph osd pool delete cache5 cache5 --yes-i-really-really-mean-it
ceph osd pool delete basepoolB basepoolB --yes-i-really-really-mean-it
ceph osd pool delete basepoolA basepoolA --yes-i-really-really-mean-it
+
+ #cache-measure
+ ceph osd pool create Mbase1 2
+ ceph osd pool create Mcache1 2
+ ceph osd tier add Mbase1 Mcache1
+ ceph osd pool set Mcache1 hit_set_type bloom
+ ceph osd pool set Mcache1 hit_set_count 4
+ ceph osd pool set Mcache1 hit_set_period 1200
+ ceph osd pool set Mcache1 hit_set_grade_decay_rate 3
+ ceph osd tier cache-mode writeback
+ ceph osd tier cache-measure temperature
+ ceph osd tier set-overlay Mbase1 Mcache1
+ ceph osd tier cache-measure atime
+ ceph osd tier cache-measure temperature
}
function test_auth()