]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/MgrMonitor: plug PAXOS for batched MgrMap/OSDMap 50978/head
authorPatrick Donnelly <pdonnell@redhat.com>
Mon, 6 Mar 2023 18:21:51 +0000 (13:21 -0500)
committerPatrick Donnelly <pdonnell@redhat.com>
Mon, 10 Apr 2023 18:44:47 +0000 (14:44 -0400)
commitd5831b8d52a9ab96a2bc9e312da8506f8e6ee22b
tree38032552377ddeb10c9597367b3d7e4dd1ad9f11
parentfb6f85d3dc4af9af7f2fce5498e236ff69e42045
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