]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
PGMap: remove pool max_avail scale factor 61320/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:23:07 +0000 (15:23 -0600)
commit1ee12b467c9b923d8d091fe9a9198a402c034ebd
treeab20a3a1ef1e0eb71578617a77786cb287b0e078
parent4ff04584bcca3b264502f606fddc4ca3008dfa93
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 4de57e904cffbf134b25b28f46caccebfc4456b1)
src/mon/PGMap.cc
src/test/mon/PGMap.cc