Restart a RabbitMQ cluster

Restart a RabbitMQ cluster

To restart the whole RabbitMQ cluster:

  1. Stop RabbitMQ on nodes one by one:

    salt msg01* cmd.run 'systemctl stop rabbitmq-server'
    salt msg02* cmd.run 'systemctl stop rabbitmq-server'
    salt msg03* cmd.run 'systemctl stop rabbitmq-server'
    
  2. Restart RabbitMQ in the reverse order:

    salt msg03* cmd.run 'systemctl start rabbitmq-server'
    salt msg02* cmd.run 'systemctl start rabbitmq-server'
    salt msg01* cmd.run 'systemctl start rabbitmq-server'