]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mds: adjust cap acquisition throttles
authorPatrick Donnelly <pdonnell@redhat.com>
Fri, 21 Jul 2023 15:56:49 +0000 (11:56 -0400)
committerPatrick Donnelly <pdonnell@redhat.com>
Fri, 21 Jul 2023 16:00:28 +0000 (12:00 -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>
src/common/options/mds.yaml.in

index 3f12d2df38d97980f029ebc737f859e4b185b53a..7b310c070c090ac50532a27c0953d3fa3f6ee0ca 100644 (file)
@@ -339,7 +339,7 @@ options:
   long_desc: 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.
-  default: 10
+  default: 30
   services:
   - mds
   flags:
@@ -348,7 +348,7 @@ options:
   type: uint
   level: advanced
   desc: throttle point for cap acquisition decay counter
-  default: 500000
+  default: 100000
   services:
   - mds
 - name: mds_session_max_caps_throttle_ratio