diff options
| author | Bogdan Dobrelya <bdobrelia@mirantis.com> | 2016-01-14 10:03:57 +0100 |
|---|---|---|
| committer | Bogdan Dobrelya <bdobrelia@mirantis.com> | 2016-01-14 10:03:57 +0100 |
| commit | 6fd4eb5bcb39be7f5ac26dcc78e3a4b4df4c6fbb (patch) | |
| tree | 22e10b2ae379910640082728f6aa127c73afb21f /scripts/rabbitmqctl | |
| parent | 86db8bccc9530e40105a0969e3c0fd09c82fc93d (diff) | |
| download | rabbitmq-server-git-6fd4eb5bcb39be7f5ac26dcc78e3a4b4df4c6fbb.tar.gz | |
Fix rabbitMQ OCF monitor detection of running master
When monitor detected the node as OCF_RUNNING_MASTER, this may be
lost while the monitor checks in progress.
* Rework the prev_rc by the rc_check to fix this.
* Also add info log if detected as running master.
* Break the monitor check loop early, if it shall be exiting to be
restarted by pacemaker.
* Do not recheck the master status and do not update the master score,
if the node was already detected by monitor as OCF_RUNNING_MASTER.
By that point, the running and healthy master shall not be checked
against other nodes uptime as it is pointless and only takes more
time and resources for the action monitor to finish.
* Fail early, if monitor detected the node as OCF_RUNNING_MASTER, but
the rabbit beam process is not running
* For OCF_CHECK_LEVEL>20, exclude the current node from the check
loop as we already checked it before
Related Fuel bug:
https://launchpad.net/bugs/1531838
Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
Diffstat (limited to 'scripts/rabbitmqctl')
0 files changed, 0 insertions, 0 deletions
