]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: report pg stats to mon at least every N (=500) epochs
authorSage Weil <sage@inktank.com>
Mon, 8 Jul 2013 20:27:58 +0000 (13:27 -0700)
committerSage Weil <sage@inktank.com>
Fri, 12 Jul 2013 22:44:44 +0000 (15:44 -0700)
commitda725852190245d2f91b7b21e72baee70e4342bd
tree5d3c33ccaa30aa92e41e3209a09d4709deaf878a
parent757af91b2af0da6bbfeeb53551fa1ef4ef9118ea
osd: report pg stats to mon at least every N (=500) epochs

The mon needs a moderately accurate last_epoch_clean value in order to trim
old osdmaps.  To prevent a PG that hasn't peered or received IO in forever
from preventing this, send pg stats at some minimum frequency.  This will
increase the pg stat report workload for the mon over an idle pool, but
should be no worse that a cluster that is getting actual IO and sees these
updates from normal stat updates.

This makes the reported update a bit more aggressive/useful in that the epoch
is the last map epoch processed by this PG and not just one that is >= the
currenting interval.  Note that the semantics of this field are pretty useless
at this point.

See #5519

Signed-off-by: Sage Weil <sage@inktank.com>
(cherry picked from commit da81228cc73c95737f26c630e5c3eccf6ae1aaec)
src/common/config_opts.h
src/osd/PG.cc