]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw/cache: implementation for organizing data in ssd cache
authorPritha Srivastava <prsrivas@redhat.com>
Tue, 10 Sep 2024 14:38:53 +0000 (20:08 +0530)
committerPritha Srivastava <prsrivas@redhat.com>
Mon, 21 Apr 2025 04:04:07 +0000 (09:34 +0530)
commitc06e72ba286bd42ba5b9183fcd640b5cf03f4c3f
treeabb843fbba3de9e865133b918a2cb6eece27616c
parentbdb32532956edf240a2c11730c1ce0dfacf20616
rgw/cache: implementation for organizing data in ssd cache
into bucket directory, object directory and then versions
representing file names.

This commit for extracts bucket id, object name, version,
offset, and length from input key and organizes data into
directories - with bucket id, object name being used to
create directories and filenames within them using version
and offset and length.

Data can be restored back to in memory LFUDA and dirty object
data structure once rgw is restarted.

Updating unit tests.
test/rgw: Correct RedisDriver keys and add checks for cache blocks after
write

Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
Signed-off-by: Samarah <samarah.uriarte@ibm.com>
src/rgw/driver/d4n/rgw_sal_d4n.cc
src/rgw/rgw_ssd_driver.cc
src/rgw/rgw_ssd_driver.h
src/test/rgw/test_d4n_policy.cc
src/test/rgw/test_ssd_driver.cc