]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common/options: add option osd_crush_scaling_factor
authorDan van der Ster <dan.vanderster@clyso.com>
Wed, 18 Jun 2025 19:28:16 +0000 (12:28 -0700)
committerDan van der Ster <dan.vanderster@clyso.com>
Fri, 20 Jun 2025 05:52:28 +0000 (22:52 -0700)
Signed-off-by: Dan van der Ster <dan.vanderster@clyso.com>
src/common/options/global.yaml.in

index 0999c791ba67f1f97421e997a3fb7dc111d96a15..634bdc326433f422b7d612022577f2b367232c34 100644 (file)
@@ -6834,3 +6834,21 @@ options:
   level: dev
   default: 0
   desc: When EC writes should generate PDWs (development only) 0=optimal 1=never 2=when possible
+- name: osd_crush_scaling_factor
+  type: float
+  level: advanced
+  desc: Scale device sizes by this factor when calculating CRUSH weights.
+    This value is applied when new OSDs are added to the cluster,
+    or when running 'ceph osd crush reweight-by-scaling-factor'.
+    E.g. When set to 1.0, CRUSH weights will be the same as the device size in TiB and
+    the maximum cluster size is ~65.5PiB.
+    If set to 0.1, CRUSH weights will be 1/10th of the device size in TiB and
+    the maximum cluster size is ~655PiB.
+  default: 1.0
+  min: 0.001
+  max: 1.0
+  services:
+  - mon
+  - osd
+  flags:
+  - runtime