]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon: mark osds down for not sending MOSDPGStat
authorColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Thu, 6 Jan 2011 21:33:07 +0000 (13:33 -0800)
committerColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Thu, 6 Jan 2011 23:44:23 +0000 (15:44 -0800)
commit494b812ca138bb3a0673a9a0635bd124c24e85f3
tree0280c36536619b72b4ebbf8fe5f2b84b90f918bc
parent396dce9e2e91366d5e3f32cd36802350f75f0029
mon: mark osds down for not sending MOSDPGStat

PGMonitor::prepare_pg_stats should check to see if the stats in the
MOSDPgStats message are the same as the ones we already have. If so, no
need to create an incremental; just send an ACK and return false.

The leading Monitor now marks osds as down if they haven't sent a
MOSDPGStat message in the last 15 minutes.

Signed-off-by: Colin McCabe <colinm@hq.newdream.net>
src/config.cc
src/config.h
src/mon/OSDMonitor.cc
src/mon/OSDMonitor.h
src/mon/PGMonitor.cc
src/mon/PGMonitor.h