First, Introduction
All red Hat OpenStack services use RABBITMQ (Unified Messaging System) for communication.
The default RABBITMQ listens on port 5672, RABBITMQ supports account-and password-based access and can implement SSL encryption, and if SSL encryption is enabled, the port needs to be modified to 5671.
RabbitMQ comes with default built-in settings which would most likely being sufficient for running your RabbitMQ server effect Ively. If it runs fine, then you probably don ' t need any of the configuration at all.
Second, the configuration
Installation (Take Redhat7/centos7 as an example):
# yum Install rabbitmq-server# systemctl enable rabbitmq-server.service# systemctl start Rabbitmq-server.service
[Email protected] ~]# cat/etc/rabbitmq/rabbitmq-env.confnode_port=5672
Environment variables:
----Define ports, file locations and names (taken from the shell, or set in the rabbitmq-env.conf file)
[email protected] ~]# cat /etc/rabbitmq/rabbitmq.config% this file managed by puppet% template path: rabbitmq/templates/rabbitmq.config[ {rabbit, [ {tcp_listen_options, [ binary, {packet, raw}, {reuseaddr, true}, {backlog, 128}, {nodelay, true}, {exit_on_close, false}] }, {loopback_users, []}, {tcp_listen_ Options, [binary,{packet, raw},{reuseaddr, true},{backlog, 128},{nodelay, true},{exit_on_close, false},{keepalive, true}]}, {default_user, << "Guest" >>}, {default_ pass, << "Guest" >>} ]}, {kernel, [ ]}].% eof
Configuration file:
----defines server component settings for permissions, limits and clusters, and also plugin settings.
Three
RABBITMQ is called through other components to verify that each OpenStack component is properly configured with RABBITMQ:
#grep Rabbit/etc/keystone/keystone.conf#grep Rabbit/etc/nova/nova.conf#grep Rabbit/etc/cinder/cinder.conf#grep Rabbit/etc/neutron/neutron.conf#grep rabbit/etc/glance/glance-api.conf
This article is from "Jason's blog" blog, please be sure to keep this source http://xujunxian.blog.51cto.com/8614409/1748209
OpenStack (iii) AMQP (RabbitMQ)