]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/MgrMonitor: plug PAXOS for batched MgrMap/OSDMap 50979/head
authorPatrick Donnelly <pdonnell@redhat.com>
Mon, 6 Mar 2023 18:21:51 +0000 (13:21 -0500)
committerPatrick Donnelly <pdonnell@redhat.com>
Thu, 4 May 2023 22:22:24 +0000 (18:22 -0400)
commitcbc7c5ea7d4a12278003e0af37bd706a17bed130
tree8be0ac1f5a38b3b555a8ccc850917b951a8f23e4
parentea9ea1748d3b3a915ffad923adba6b8be615c9da
mon/MgrMonitor: plug PAXOS for batched MgrMap/OSDMap

Plugging PAXOS has the effect of batching map updates into a single
PAXOS transaction. Since we're updating the OSDMap several times and the
MgrMap, plug PAXOS for efficiency. This also has the nice effect of
reducing any delay between the active mgr getting dropped and the
blocklisting of its clients. This doesn't resolve any race condition as
the two maps are never processed in one unit. So the former active
manager may process the OSDMap blocklists before learning it is dropped
from the MgrMap.

Fixes: https://tracker.ceph.com/issues/58923
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit 2e057bbf9ed4934443fb78e8cdd588aa2100969c)
src/mon/MgrMonitor.cc
src/mon/MgrMonitor.h