fuel-library/files
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
..
fuel-ha-utils Introduce critical section on master election process 2017-06-07 15:46:20 +04:00
fuel-migrate Improving logging procedure 2016-07-28 19:31:02 +00:00
fuel-misc Fix 'generate_vms.sh' idempotentency 2016-08-30 15:12:17 +00:00
fuel-notify Move free disk space checker to package 2015-05-16 13:53:54 +03:00
fuel-umm Enable umm time reset script on boot 2017-02-22 14:27:49 +02:00
fuel-utils Revert "Nailgun status check should include http responses" 2017-01-20 14:35:10 +00:00
rabbit-fence Refactor lock-file handling 2016-08-19 19:08:38 +00:00