Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents
Info

This document describes the steps to stop and start the database and RabbitMQ in a HA environment.
For more details about restarting a Galera cluster, see https://galeracluster.com/library/training/tutorials/restarting-cluster.html

Check Galera cluster leaderĀ 

...

  1. On the datanodes, checkĀ the state of Galera:

    Code Block
    [root@datanodes2 /]# cd /var/lib/mysql/
    [root@datanodes2 mysql]# cat grastate.dat 
    # GALERA saved state
    version: 2.1
    uuid:    c0e2c5f4-e045-11e9-988e-d6d16254ad99
    seqno:   -1
    safe_to_bootstrap: 0

    If there is a node with safe_to_bootstrap=1, you should start the cluster on this node
    If no node is marked as safe_to_bootstrap, force it (using the virt virtual IP).

...

Stop Galera cluster

To stop the Galera cluster do these steps.

...

Code Block
[root@datanodes1 mysql]# maxadmin show servers
[root@datanodes1 mysql]# maxadmin list servers


...

Check RabbitMQ

...

cluster and rejoin

On each node datanode server do these commands.

Code Block
rabbitmqctl stop_app
rabbitmqctl join_cluster rabbit@datanodes1
rabbitmqctl join_cluster rabbit@datanodes2
rabbitmqctl start_app
rabbitmqctl cluster_status


...

Start services and servers

After you restart the Galera, MySQL and RabbitMQ on the datanode servers, do these steps

  1. On the services datanodes, manually start the Redis service

  2. Start the monitoring cluster (remember to wait 5 minutes for Cassandra and 1 minute for KairosDB)

  3. Start other Abiquo servers (or restart tomcat services)