Ubuntu 上的 消息队列

OpenStack uses a message queue to coordinate operations and status information among services. The message queue service typically runs on the controller node. OpenStack supports several message queue services including RabbitMQ, Qpid, and ZeroMQ. However, most distributions that package OpenStack support a particular message queue service. This guide implements the RabbitMQ message queue service because most distributions support it. If you prefer to implement a different message queue service, consult the documentation associated with it.

消息队列运行在控制节点。

安装并配置组件

  1. 安装软件包:

    # apt install rabbitmq-server
    
  2. 添加 openstack 用户:

    # rabbitmqctl add_user openstack RABBIT_PASS
    
    Creating user "openstack" ...
    

    用合适的密码替换 RABBIT_DBPASS

  3. 给``openstack``用户配置写和读权限:

    # rabbitmqctl set_permissions openstack ".*" ".*" ".*"
    
    Setting permissions for user "openstack" in vhost "/" ...