From 2093c882298e0dc363fc56727b8e1c4a14d0c2f2 Mon Sep 17 00:00:00 2001 From: Yin Congmin Date: Sat, 26 Dec 2020 00:01:34 +0800 Subject: [PATCH] tools: update immutable object cache water mark Signed-off-by: Yin Congmin --- PendingReleaseNotes | 4 ++++ doc/rbd/rbd-persistent-read-only-cache.rst | 6 +++--- src/common/options.cc | 2 +- src/test/immutable_object_cache/test_SimplePolicy.cc | 4 ++-- src/tools/immutable_object_cache/ObjectCacheStore.cc | 10 ++++++++-- src/tools/immutable_object_cache/SimplePolicy.cc | 2 +- 6 files changed, 19 insertions(+), 9 deletions(-) diff --git a/PendingReleaseNotes b/PendingReleaseNotes index 4d4513e99b383..c4f07b575a653 100644 --- a/PendingReleaseNotes +++ b/PendingReleaseNotes @@ -48,6 +48,10 @@ * An AWS-compliant API: "GetTopicAttributes" was added to replace the existing "GetTopic" API. The new API should be used to fetch information about topics used for bucket notifications. +* librbd: The shared, read-only parent cache's config option ``immutable_object_cache_watermark`` now has been updated + to property reflect the upper cache utilization before space is reclaimed. The default ``immutable_object_cache_watermark`` + now is ``0.9``. If the capacity reaches 90% the daemon will delete cold cache. + >=15.0.0 -------- diff --git a/doc/rbd/rbd-persistent-read-only-cache.rst b/doc/rbd/rbd-persistent-read-only-cache.rst index dbaa66035e3d6..3b17efb9cec92 100644 --- a/doc/rbd/rbd-persistent-read-only-cache.rst +++ b/doc/rbd/rbd-persistent-read-only-cache.rst @@ -116,8 +116,8 @@ The ``ceph-immutable-object-cache`` daemon is available within the optional .. important:: ``ceph-immutable-object-cache`` daemon requires the ability to connect RADOS clusters. -Run Daemon ----------- +Running the Immutable Object Cache Daemon +----------------------------------------- ``ceph-immutable-object-cache`` daemon should use a unique Ceph user ID. To `create a Ceph user`_, with ``ceph`` specify the ``auth get-or-create`` @@ -137,7 +137,7 @@ The ``ceph-immutable-object-cache`` can also be run in foreground by ``ceph-immu QOS Settings ------------ -Immutable object cache supports throttle, controlled by the following settings. +The immutable object cache supports throttling, controlled by the following settings: ``immutable_object_cache_qos_schedule_tick_min`` diff --git a/src/common/options.cc b/src/common/options.cc index 2dd0e07b8a61f..e3ef3bcb3e0c5 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -7910,7 +7910,7 @@ static std::vector