]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/MgrMonitor: plug PAXOS for batched MgrMap/OSDMap 50404/head
authorPatrick Donnelly <pdonnell@redhat.com>
Mon, 6 Mar 2023 18:21:51 +0000 (13:21 -0500)
committerPatrick Donnelly <pdonnell@redhat.com>
Mon, 13 Mar 2023 16:31:09 +0000 (12:31 -0400)
commit2e057bbf9ed4934443fb78e8cdd588aa2100969c
tree9d1cd207d32136951481d043cc90bff413adf8f1
parent30b20d3c13be532e5508dc65276e90c7973c0c51
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>
src/mon/MgrMonitor.cc
src/mon/MgrMonitor.h