Project

General

Profile

Bug #12673

Updated by Loic Dachary about 3 years ago

Steps to reproduce:

<pre>
./stop.sh
rm -fr out dev ; MON=1 OSD=3 ./vstart.sh -X -d -n -l mon osd

ceph osd pool create slow 1 1
ceph osd pool create fast 1 1
ceph osd tier add slow fast
ceph osd tier cache-mode fast writeback
ceph osd tier set-overlay slow fast
ceph osd pool set fast hit_set_type bloom
ceph osd pool set fast cache_target_dirty_ratio 0.05
ceph osd pool set fast cache_min_flush_age 300
rados -p slow put obj1 /etc/group
rados -p slow put obj2 /etc/group
rados -p slow put
obj3 /etc/group
ceph osd pool set fast cache_target_dirty_ratio .5
ceph osd pool set fast cache_target_full_ratio .8

ceph osd pool set fast target_max_objects 1
ceph osd pool set fast hit_set_count 1
ceph osd pool set fast hit_set_period 5

sleep 30
ceph df

rados -p slow get obj3 /tmp/obj3
ceph df

sleep 30

ceph df
ceph health detail

</pre>
The obj3 is not evicted from the fast pool.
<pre>
$ ceph df
*** DEVELOPER MODE: setting PATH, PYTHONPATH and LD_LIBRARY_PATH ***
GLOBAL:
SIZE AVAIL RAW USED %RAW USED
547G 53735M 494G 90.40
POOLS:
NAME ID USED %USED MAX AVAIL OBJECTS
rbd 0 0 0 17909M 0
slow 1 3834 0 17909M 3
fast 2 1363 0 17909M 2
$ rados -p fast ls
obj3
</pre>

Back