]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
PGMap: remove pool max_avail scale factor 62437/head
authorMichael J. Kidd <linuxkidd@gmail.com>
Fri, 19 Apr 2024 14:20:22 +0000 (07:20 -0700)
committerMichael J. Kidd <linuxkidd@gmail.com>
Tue, 1 Apr 2025 21:10:36 +0000 (15:10 -0600)
commit720ec8c439f7caa8320b1d6963ba3f76ede4ef33
tree567a703b686b56e1aa441e129e085822431c57a4
parent1ebc57c81ee51d64ca438a50b70b210a683916f5
PGMap: remove pool max_avail scale factor

The scaling of max_avail by the ratio of non-degraded to total objects
count results in the reported max_avail increasing proportionally to the
number of OSDs marked `down` but not `out`.  This is counter intuitive
since OSDs going `down` should never result in more space being
available.

Removing the scale factor allows max_avail to remain unchanged until the
OSDs are marked `out`.

Signed-off-by: Michael J. Kidd <linuxkidd@gmail.com>
(cherry picked from commit 5ae09aedbd15575686f3e4531aad519fac3bc537)
src/mon/PGMap.cc
src/test/mon/PGMap.cc