]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/PGMap: cap health detail messages at 50 (configurable)
authorSage Weil <sage@redhat.com>
Fri, 19 May 2017 15:48:15 +0000 (11:48 -0400)
committerSage Weil <sage@redhat.com>
Fri, 2 Jun 2017 17:02:49 +0000 (13:02 -0400)
commit229e56c7bcf50a53ce3c0318aac583c574e39aa9
tree1d8573512e6ecb82f28d78f0e33fe3c4cf894b29
parentf0d417366f87a01163afcb0ff2c569301a71d040
mon/PGMap: cap health detail messages at 50 (configurable)

There are two cases where we spew health detail warnings for potentially
every pg.  Cap those detail messages at 50 and, if we exceed that, include
a message saying how many more there are.  This avoids huge lists of
detail messages going from the mgr to mon and also makes life better for
users of the health detail api.

Signed-off-by: Sage Weil <sage@redhat.com>
src/common/config_opts.h
src/mon/PGMap.cc