From: zhengyin Date: Tue, 25 Feb 2020 04:00:11 +0000 (+0800) Subject: librbd: Improved support for balanced and localized reads X-Git-Tag: v15.1.1~216^2~1 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=d92be8b5856d7724cb8aceea292183246444969a;p=ceph.git librbd: Improved support for balanced and localized reads Fixes: https://tracker.ceph.com/issues/43793 Signed-off-by: Zheng Yin --- diff --git a/doc/rbd/rbd-config-ref.rst b/doc/rbd/rbd-config-ref.rst index a68f446e6eeac..6fb1676c7b524 100644 --- a/doc/rbd/rbd-config-ref.rst +++ b/doc/rbd/rbd-config-ref.rst @@ -15,6 +15,14 @@ Generic IO Settings :Default: ``none`` :Values: ``none``, ``compressible``, ``incompressible`` +``rbd read from replica policy`` + +:Description: policy for determining which OSD will receive read operations. If set to `default`, the primary OSD will always be used for read operations. If set to `balance`, read operations will be sent to a randomly selected OSD within the replica set. If set to `localize`, read operations will be sent to the closest OSD as determined by the CRUSH map. Note: this feature requires the cluster to be configured with a minimum compatible OSD release of Octopus. +:Type: Enum +:Required: No +:Default: ``default`` +:Values: ``default``, ``balance``, ``localize`` + Cache Settings ======================= diff --git a/src/common/options.cc b/src/common/options.cc index ce0853df50a4f..6bf178222c91a 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -7180,6 +7180,12 @@ static std::vector