]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon: refactor osd failure report tracking
authorSage Weil <sage@inktank.com>
Tue, 18 Sep 2012 21:38:47 +0000 (14:38 -0700)
committerSage Weil <sage@inktank.com>
Tue, 18 Sep 2012 21:38:59 +0000 (14:38 -0700)
commite06818be0472c981671c1d39e057e8867d8deb1c
tree93ef224231f32df09d571a10ae4dbf74531e4d25
parent66f31c1091f134eb54642898bb92c397c9ab6016
mon: refactor osd failure report tracking

- use structs to track allegedly failed nodes, and reports against them.
- use methods to handle report, and failure threshold logic.
- calculate failed_since based on OSD's reported failed_for duration

This will make it simpler to extend the logic when we add dynamic
grace periods.

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