]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: wait for healthy pings from peers in waiting-for-healthy state 331/head
authorSage Weil <sage@inktank.com>
Wed, 29 May 2013 20:26:45 +0000 (13:26 -0700)
committerSage Weil <sage@inktank.com>
Thu, 30 May 2013 05:43:50 +0000 (22:43 -0700)
commit0c0595514db6590d5f89b5deac2d8bdf11d0b530
tree6f18cb4d140188a37b5a904f86e356cd54d40f9c
parent04aa2b5edf72eb59a5dc688475df59dda25a3cac
osd: wait for healthy pings from peers in waiting-for-healthy state

If we are (wrongly) marked down, we need to go into the waiting-for-healthy
state and verify that our network interfaces are working before trying to
rejoin the cluster.

 - make _is_healthy() check require positive proof of pings working
 - do heartbeat checks and updates in this state
 - reset the random peers every heartbeat_interval, in case we keep picking
   bad ones

Signed-off-by: Sage Weil <sage@inktank.com>
src/osd/OSD.cc
src/osd/OSD.h