]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
librbd: switch to write-around cache policy by default
authorJason Dillaman <dillaman@redhat.com>
Wed, 27 Mar 2019 23:16:04 +0000 (19:16 -0400)
committerJason Dillaman <dillaman@redhat.com>
Thu, 11 Apr 2019 16:47:00 +0000 (12:47 -0400)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
PendingReleaseNotes
src/common/options.cc

index 52f9c261ea69d01204d49d988ff47b1ee5580ea9..255ac9f0ba147abf26fbfc3b780a4b16296347c1 100644 (file)
   python3.4, because EPEL7 recently switched from python3.4 to
   python3.6 as the native python3. see the `announcement <https://lists.fedoraproject.org/archives/list/epel-announce@lists.fedoraproject.org/message/EGUMKAIMPK2UD5VSHXM53BH2MBDGDWMO/>_`
   for more details on the background of this change.
+
+* librbd now uses a write-around cache policy be default,
+  replacing the previous write-back cache policy default.
+  This cache policy allows librbd to immediately complete
+  write IOs while they are still in-flight to the OSDs.
+  Subsequent flush requests will ensure all in-flight
+  write IOs are completed prior to completing. The
+  librbd cache policy can be controlled via a new
+  "rbd_cache_policy" configuration option.
index 849aa94b135e783f5e321368516f0d1fd9717a7e..da82ba3e28c0150f54f3dbbd887140f2c8d1e672 100644 (file)
@@ -6992,7 +6992,7 @@ static std::vector<Option> get_rbd_options() {
 
     Option("rbd_cache_policy", Option::TYPE_STR, Option::LEVEL_ADVANCED)
     .set_enum_allowed({"writethrough", "writeback", "writearound"})
-    .set_default("writeback")
+    .set_default("writearound")
     .set_description("cache policy for handling writes."),
 
     Option("rbd_cache_writethrough_until_flush", Option::TYPE_BOOL, Option::LEVEL_ADVANCED)