]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
PGMap: remove pool max_avail scale factor 57003/head
authorMichael J. Kidd <linuxkidd@gmail.com>
Fri, 19 Apr 2024 14:20:22 +0000 (07:20 -0700)
committerMichael J. Kidd <linuxkidd@gmail.com>
Thu, 8 Aug 2024 16:04:33 +0000 (09:04 -0700)
commit4de57e904cffbf134b25b28f46caccebfc4456b1
tree0ae8598ccad1df6278cb31f9ca5cef50204486bb
parentd5c8530042f7705c6e8ec83a32e0ea1be9cbad40
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>
src/mon/PGMap.cc
src/test/mon/PGMap.cc