fuel-library/files/fuel-ha-utils
Vladimir Kuklin 3e8fe44dbe 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: I7f4728b75ce5577338dff182634b608823cff74e
Closes-bug: #1617400
Co-Authored-By: Fedor Zhadaev <fzhadaev@mirantis.com>
2017-06-07 15:46:20 +04:00
..
ocf Introduce critical section on master election process 2017-06-07 15:46:20 +04:00
policy Add RabbitMQ expiration policies for convergence 2016-09-07 12:23:28 +00:00
tools Pull apart swift haproxy health checker 2015-12-22 11:10:27 +03:00