]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: adjust cap acquisition throttles 52974/head
authorPatrick Donnelly <pdonnell@redhat.com>
Fri, 21 Jul 2023 15:56:49 +0000 (11:56 -0400)
committerPatrick Donnelly <pdonnell@redhat.com>
Mon, 14 Aug 2023 13:39:55 +0000 (09:39 -0400)
For production workloads, these defaults rarely help. Adjust
accordingly. For a steady state "find" workload, these new throttles
will prevent acquiring more than ~2300 caps/second which is quite
manageable with typical recall rates.

    -ln(0.5) / 30 * 100k = 2310

Fixes: https://tracker.ceph.com/issues/62114
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit f290ef9d0d2d09fb978d56c46be704c6efd45c43)

Conflicts:
src/common/options/mds.yaml.in: trivial

src/common/options.cc

index 3f4527795f88e4e97399e100ee6844e77cd85bcd..7b0e4cf2b6c273a4ccc712179d2ae863bd712b40 100644 (file)
@@ -8430,13 +8430,13 @@ std::vector<Option> get_mds_options() {
     .set_long_description("This is the order of magnitude difference (in base 2) of the internal liveness decay counter and the number of capabilities the session holds. When this difference occurs, the MDS treats the session as quiescent and begins recalling capabilities."),
 
     Option("mds_session_cap_acquisition_decay_rate", Option::TYPE_FLOAT, Option::LEVEL_ADVANCED)
-    .set_default(10)
+    .set_default(30)
     .set_description("decay rate for session readdir caps leading to readdir throttle")
     .set_flag(Option::FLAG_RUNTIME)
     .set_long_description("The half-life for the session cap acquisition counter of caps acquired by readdir. This is used for throttling readdir requests from clients slow to release caps."),
 
     Option("mds_session_cap_acquisition_throttle", Option::TYPE_UINT, Option::LEVEL_ADVANCED)
-    .set_default(500000)
+    .set_default(100000)
     .set_description("throttle point for cap acquisition decay counter"),
 
     Option("mds_session_max_caps_throttle_ratio", Option::TYPE_FLOAT, Option::LEVEL_ADVANCED)