Rate This Document
Findability
Accuracy
Completeness
Readability

Installing RabbitMQ

Install RabbitMQ on the controller node. Before installing and configuring the RabbitMQ service, ensure that the host name has been modified. If the host name changes again, RabbitMQ data will be lost. In this case, you need to reconfigure RabbitMQ if you change the host name again.

  1. Install the software package.
    yum install rabbitmq-server
  2. Start the RabbitMQ service and configure it to automatically start upon system startup.
    systemctl enable rabbitmq-server.service
    systemctl start rabbitmq-server.service
  3. Add an OpenStack user.
    rabbitmqctl add_user openstack RABBIT_PASSWORD

    Replace RABBIT_PASSWORD with the OpenStack user password. The password cannot contain the characters including #@$ and can contain the special characters including &=-_.+!*()

  4. Set the permission of the OpenStack user so that the user can perform configuration, write, and read operations.
    rabbitmqctl set_permissions openstack ".*" ".*" ".*"
  5. Modify the default RabbitMQ parameter.
    1. Open the /usr/lib/systemd/system/rabbitmq-server.service file.
      vi /usr/lib/systemd/system/rabbitmq-server.service
    2. Press i to enter the insert mode and add the following content to the Service module:
      [Service] 
      LimitNOFILE=16384

      LimitNOFILE indicates the maximum number of file descriptors that can be opened by a single process.

    3. Press Esc to exit the insert mode. Type :wq! and press Enter to save the file and exit.
  6. Restart the RabbitMQ service.
    systemctl daemon-reload  
    systemctl restart rabbitmq-server.service