生产环境建议在集群三台controller上做rabbitmq
使用到队列的openstack组件
- OpenStack Compute
- OpenStack Block Storage
- OpenStack Networking
- Telemetry
本来愿望是美好的,但我们参考官方本置方法,并生了(openstack集群--rabbitmq集群配置)发现在演练切换rabbitmq时,会出现compute和neutron服务的访问抛出rabbitmq的错误日志,需要等很长时间服务超时了,才能恢复,或者实时重启所有服务才能恢复
受此限制,2边接队列只能做冷备方案,如遇故障时,重启所有服务
在kxcontroller1 kxcontroller2 controller controller 均独立安装rabbitmq-server
yum install rabbitmq-server -y
修改rabbitmq的监听端口
vi /etc/rabbitmq/rabbitmq.config
比如修改
%% {tcp_listeners, [{"127.0.0.1", 5672},
%% {"::1", 5672}]},
为
{tcp_listeners, [{"10.40.42.1", 5672}]}
systemctl start rabbitmq-server.service
systemctl enable rabbitmq-server.service
rabbitmqctl add_user openstack openstack
rabbitmqctl set_permissions openstack ".*" ".*" ".*"