Configuring EC2 dynamic bind

One of the benefits of the cloud is the scalability, and when you configure a RabbitMQ cluster, you need to automate the joining steps. You shouldn't manually configure each new RabbitMQ cluster node.

In this recipe we will see how to join new machines to the RabbitMQ cluster.

Getting ready

You need to create a VPC as we did in the Creating a cluster with two EC2 instances recipe.

How to do it…

In this example we use Ubuntu 12.04.3 LTS Cloud. Perform the following steps to join new machines to the cluster:

  1. Create a VPC as we did in the Creating a cluster with two EC2 instances recipe, without creating the cluster.
  2. Add one machine to the VPC. This machine will be the master of the RabbitMQ cluster, to which other nodes will ...

Get RabbitMQ Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.