Since our cache tier is ready, during the write
operation, clients will see what is being written to their regular pools, but actually, it's being written on cache-pools first and then based on the cache tier policy data, it will be flushed to the storage tier. This data migration is transparent to the client.
In the previous recipe, we created a 500 MB test file named
/tmp/file1
; we will now put this file in anEC-pool
:# rados -p EC-pool put object1 /tmp/file1
Since an
EC-pool
is tiered with acache-pool
namedfile1
should not get written to theEC-pool
in the first step, however, it will get written to thecache-pool
. To verify this, list each pool to get the object names. Use the date command to track the time and changes:# rados -p EC-pool ls # rados -p cache-pool ls # date
After 300 seconds (as we have configured
cache_min_evict_age
to300
seconds), the cache-tiering agent will migrateobject1
from thecache-pool
to theEC-pool
, andobject1
will be...