]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/MgrMonitor: plug PAXOS for batched MgrMap/OSDMap 50980/head
authorPatrick Donnelly <pdonnell@redhat.com>
Mon, 6 Mar 2023 18:21:51 +0000 (13:21 -0500)
committerPatrick Donnelly <pdonnell@redhat.com>
Thu, 11 May 2023 16:08:56 +0000 (12:08 -0400)
commitc9be0bc213bbb79c25844e9a8a26113adde6ec32
tree216b9c6837ef4fa8016199f2621813670ed71de9
parent046af0b6f21616edf2b9e23bec46128be920f4a6
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