Skip to content
dmichelotto edited this page Oct 8, 2014 · 1 revision

##RabbitMQ Installation Guide

In this guide, we’ll install a RabbitMQ message queue service for a redundant Keystone identity service for our OpenStack Icehouse controller stack.

This cluster will be assembled of three servers/nodes:

node #1
hostname: rabbit1
IP: 192.168.70.77

node #2
hostname: rabbit2
IP: 192.168.70.78

node #3
hostname: rabbit3
IP: 192.168.70.79

Install

Install RabbitMQ on each nodes:

yum -y install rabbitmq-server

Configure

After the install has completed, we should stop rabbitmq on each nodes:

service rabbitmq-server stop

Then we copy the erlang cookie from node 1 to node 2 and node 3.

scp /var/lib/rabbitmq/.erlang.cookie root@rabbit2:/var/lib/rabbitmq/.erlang.cookie
scp /var/lib/rabbitmq/.erlang.cookie root@rabbit3:/var/lib/rabbitmq/.erlang.cookie

Start service

Then, we can start each nodes again:

service rabbitmq-server start

Now, we can tell RabbitMQ to form a cluster. On node 2 and node 3, type the following:

rabbitmqctl stop_app
rabbitmqctl join_cluster rabbit@icehouse1
rabbitmqctl start_app

At the and you should see a response like this, showing three nodes in the cluster:

rabbitmqctl cluster_status
Cluster status of node rabbit@icehouse2 ...
[{nodes,[{disc,[rabbit@rabbit1,rabbit@rabbit2,rabbit@rabbit3]}]},
 {running_nodes,[rabbit@rabbit1,rabbit@rabbit2,rabbit@rabbit3]},
 {partitions,[]}]
...done.

Configuration of Keystone with RabbitMQ

See the relative guide for Keystone.

Clone this wiki locally