]> 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>
Tue, 9 Jul 2013 20:42:34 +0000 (13:42 -0700)
commitda81228cc73c95737f26c630e5c3eccf6ae1aaec
treef8c40e8cbfa04ba14e492110a77aa16220dbae99
parent449283f802206694734dfe9d6e110cb717d1fffe
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>
src/common/config_opts.h
src/osd/PG.cc