]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mon: use per-pool stats only when all OSDs are reporting
authorSage Weil <sage@redhat.com>
Wed, 10 Jul 2019 22:12:16 +0000 (17:12 -0500)
committerSage Weil <sage@redhat.com>
Thu, 11 Jul 2019 14:04:18 +0000 (09:04 -0500)
commit5dcb6d81bbc2a4c4d0da4a33d9f6bbba5065a1ad
tree04a065b2c279c3cf439b1c909a818d6c0acee7dc
parent5f99db7efaa3ec929ca6125709a7838fb1ca773a
mon: use per-pool stats only when all OSDs are reporting

Previously, we would start using the per-pool stat sums as soon as *any*
OSDs were reporting.  For a legacy cluster, that meant that as soon as
one bluestore instance is updated or one new bluestore OSD is created, the
usage stats per pool would become useless.

Instead, only use the per-pool stats once *all* OSDs are reporting the new
values.  This mostly aligns with the health warning when one more bluestore
OSDs are not reporting; once they are update the warning goes away.  (That
does not factor in fielstore OSDs, though; all OSDs need to be new *and*
bluestore.)

Signed-off-by: Sage Weil <sage@redhat.com>
12 files changed:
src/librados/RadosClient.cc
src/librados/RadosClient.h
src/librados/librados_c.cc
src/librados/librados_cxx.cc
src/messages/MGetPoolStatsReply.h
src/mon/MgrStatMonitor.cc
src/mon/PGMap.cc
src/mon/PGMap.h
src/osd/osd_types.h
src/osdc/Objecter.cc
src/osdc/Objecter.h
src/test/mon/PGMap.cc