fuel-library/files/fuel-ha-utils/ocf
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
..
aodh-evaluator Implement Aodh integration into Fuel 2016-03-01 17:23:57 +03:00
ceilometer-agent-central Refactor OCF functions 2016-02-16 09:47:19 +01:00
ceilometer-agent-compute Refactor OCF functions 2016-02-16 09:47:19 +01:00
ceilometer-alarm-evaluator Remove port check from alarm-evaluator 2016-02-24 16:46:57 -07:00
haproxy Add pkill by name to the ocf-fuel-funcs 2016-01-11 15:42:03 +01:00
heat-engine Refactor OCF functions 2016-02-16 09:47:19 +01:00
mysql-wss Introduce critical section on master election process 2017-06-07 15:46:20 +04:00
neutron-dhcp-agent Refactor OCF functions 2016-02-16 09:47:19 +01:00
neutron-l3-agent Refactor OCF functions 2016-02-16 09:47:19 +01:00
neutron-metadata-agent Refactor OCF functions 2016-02-16 09:47:19 +01:00
neutron-ovs-agent Refactor OCF functions 2016-02-16 09:47:19 +01:00
nova-compute Refactor OCF functions 2016-02-16 09:47:19 +01:00
nova-network Refactor OCF functions 2016-02-16 09:47:19 +01:00
ns_IPaddr2 Fix OVS-related issues with underlay networking 2017-04-28 18:00:01 +03:00
ns_conntrackd Use safe conditions 2016-07-19 13:32:59 +00:00
ns_dns Set net.ipv4.ip_nonlocal_bind=1 for vrouter namespace 2016-06-27 13:12:29 +02:00
ns_haproxy Accept "ip link" changed output format 2017-02-08 15:01:32 +00:00
ns_ntp Apply PAM security limits by running daemons through su 2016-02-02 18:35:58 +03:00
ns_vrouter Accept "ip link" changed output format 2017-02-08 15:01:32 +00:00
ocf-fuel-funcs Refactor OCF functions 2016-02-16 09:47:19 +01:00
rabbitmq Merge "Correctly return exit code from stop" into stable/mitaka 2016-11-23 14:12:16 +00:00
rabbitmq-fuel Disable HA for RPC queues by default 2016-02-29 19:56:35 +03:00