Restart a RabbitMQ node

Restart a RabbitMQ node


We recommend that you do not restart a RabbitMQ node on a production environment by executing systemctl restart rabbitmq-server since a cluster can become inoperative.

To restart a single RabbitMQ node:

  1. Gracefully stop rabbitmq-server on the target node:

    systemctl stop rabbitmq-server
  2. Verify that the node is removed from the cluster and RabbitMQ is stopped on this node:

    rabbitmqctl cluster_status

    Example of system response:

    Cluster status of node rabbit@msg01
    {running_nodes,[rabbit@msg03,rabbit@msg01]},  # <<< rabbit stopped on msg02
  3. Start rabbitmq-server:

    systemctl start rabbitmq-server