commit 3e8fe44dbe77a4b6595f3fe0aac5d7b62d777e1a
Author: Vladimir Kuklin <email address hidden>
Date: Wed May 17 19:42:09 2017 +0300
Introduce critical section on master election process
This commit adds a node attribute with value which
means the timestamp of when the election process started.
If we have election on any node in process we sleep for a while
unless the attribute is outdated.
We start the election only if the attributes for all nodes are outdated
or if they do not exist.
This prevents us from hitting rare condition when several nodes
start simultaneously but do not agree on the master node due to
race condition in MySQL start time and pacemaker attribute setting
Reviewed: https:/ /review. openstack. org/465674 /git.openstack. org/cgit/ openstack/ fuel-library/ commit/ ?id=3e8fe44dbe7 7a4b6595f3fe0aa c5d7b62d777e1a
Committed: https:/
Submitter: Jenkins
Branch: stable/mitaka
commit 3e8fe44dbe77a4b 6595f3fe0aac5d7 b62d777e1a
Author: Vladimir Kuklin <email address hidden>
Date: Wed May 17 19:42:09 2017 +0300
Introduce critical section on master election process
This commit adds a node attribute with value which
means the timestamp of when the election process started.
If we have election on any node in process we sleep for a while
unless the attribute is outdated.
We start the election only if the attributes for all nodes are outdated
or if they do not exist.
This prevents us from hitting rare condition when several nodes
start simultaneously but do not agree on the master node due to
race condition in MySQL start time and pacemaker attribute setting
Change-Id: I7f4728b75ce557 7338dff182634b6 08823cff74e
Closes-bug: #1617400
Co-Authored-By: Fedor Zhadaev <email address hidden>