Creating a simple cluster

Setting up a cluster with RabbitMQ is a matter of a few minutes. With just a few configuration steps, the high-availability cluster is up and running.

It's actually easier than setting it up locally, as seen in the Creating a localhost cluster recipe, since each node will use the standard port settings.

Getting ready

In order to prepare this recipe, you need at least two hosts with RabbitMQ installed and configured as standalone brokers.

Note

For the cluster to work properly, it's important that the versions of both RabbitMQ and Erlang are aligned on all the hosts.

The hosts can be physical servers, cloud instances, or virtual machines.

Tip

The Amazon Web Services (AWS) community AMI's with preinstalled RabbitMQ are usually outdated. ...

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.