Skip to content

Commit 80de0a3

Browse files
committed
doc/rados: clarify "upmap_max_deviation"
Clarify the threshold set by "upmap_max_deviation" and add the information about this configurable that is currently in src/pybind/mgr/balancer/module.py to src/common/options/global.yaml.in, so that it will be accessible by means of ".. confval::" declarations. Fixes: https://tracker.ceph.com/issues/71796 Signed-off-by: Zac Dover <[email protected]>
1 parent 5e4bcdc commit 80de0a3

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

doc/rados/operations/balancer.rst

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,14 @@ of the following form:
6060
A larger value may increase the speed of cluster balancing / convergence
6161
at the potential cost of greater impact on client operations.
6262

63-
There is a separate setting ``upmap_max_deviation`` for how uniform the
64-
distribution of PGs must be for the module to consider the cluster adequately
65-
balanced. At the time of writing (June 2025), this value defaults to ``5``,
66-
which means that if a given OSD's PG replicas vary by five or fewer above or
67-
below the cluster's average, it will be considered sufficiently balanced.
68-
63+
The setting ``upmax_max_deviation`` sets the threshold at which the balancer
64+
module considers the cluster's distribution of PGs adequately balanced. At the
65+
time of writing (June 2025), this value defaults to ``5``, which means that a
66+
given OSD's PG replicas are considered adequately balanced when they vary by
67+
five or fewer above or below the cluster's average. Here are the details of
68+
this configurable:
69+
70+
.. confval:: upmap_max_deviation
6971

7072
This value of PG replicas / shards (as distinct from logical PGs) is reported
7173
by the ``ceph osd df`` command under the ``PGS`` column and the variance

src/common/options/global.yaml.in

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6834,3 +6834,8 @@ options:
68346834
level: dev
68356835
default: 0
68366836
desc: When EC writes should generate PDWs (development only) 0=optimal 1=never 2=when possible
6837+
- name: upmap_max_deviation
6838+
type: int
6839+
level: unknown (fixme)
6840+
default: 5
6841+
desc: If the number of PGs is within this count then no optimization is attempted

0 commit comments

Comments
 (0)