This repository has been archived by the owner on Feb 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HA: reimplement resource locks with cibadmin
A resource lock is used as a synchronization point between pacemaker cluster nodes. It is currently implemented by adding an attribute in an offline copy of CIB, and merging the update in the CIB only if no concurrent updates has occurred in the mean time. The problem with that approach is that - even if the concurrency is enforced by pacemaker - the offline CIB contains a snapshot of the cluster state; so pushing back the entire offline CIB pushes old resources' state back into the cluster. This causes additional burden on the cluster and sometimes caused unexpected cluster state transition. Reimplement the locking strategy with cibadmin; It's a much faster approach, that provides the same concurrency guarantees, and only changes one attribute rather than the entire CIB, so it doesn't cause unexpected cluster state transition. Closes-Bug: #1905585 Change-Id: Id10f026c8b31cad7b7313ac9427a99b3e6744788
- Loading branch information
1 parent
efd1975
commit c8f5fdf
Showing
1 changed file
with
50 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters