]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: reimplement laggy
authorSage Weil <sage.weil@dreamhost.com>
Thu, 24 Mar 2011 00:17:44 +0000 (17:17 -0700)
committerSage Weil <sage.weil@dreamhost.com>
Thu, 24 Mar 2011 16:29:01 +0000 (09:29 -0700)
commit399cae9a05949035c302ed675ca261e93a35ee02
tree4855b6a3373a57a358d4121abac9e6ca062fe853
parente6b0302510db91560ce07ae48d302855b64468f5
mds: reimplement laggy

The goal is for the MDS to stop processing requests when it hasn't heard
from the monitors, to avoid a situation where a rogue process goes off
doing its own thing.  Yes, if we fail it over the cmds can't write to the
object store, but it can reply to clients when it may not be appropriate
or good to do so.

The old logic was fragile and wonky, with messages getting deferred, and
then re-deferred.  This implementation is much cleaner and should be much
more efficient and less fragile.  There are still improvements to be made
as far as which messages we do/do not process when we think we're laggy.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
src/mds/MDS.cc
src/mds/MDS.h