]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon: cache osd epochs
authorSage Weil <sage@inktank.com>
Fri, 26 Apr 2013 19:22:28 +0000 (12:22 -0700)
committerSage Weil <sage@inktank.com>
Fri, 26 Apr 2013 23:04:16 +0000 (16:04 -0700)
commit6d348a1ef2910b6e01305d2ca97b1f2dbed0a3af
tree1320b5c2b8cb0a997832912d3df5afc7664b32ef
parent0650fa956ac1349dd1010c9223b82c762e15a7c0
mon: cache osd epochs

The monitor may get a series of messages from the OSD that prompt it to
send incremental maps (pg_temp updates, failures, probably more).  Avoid
sending the same incremental maps twice by keeping a cache of what epochs
we think the OSDs have.

This reduces monitor load, especially when the mon is a bit behind and is
getting a stream of delayed messages, and the work associated with sending
the inc maps prevents it from catching up.

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