O'Reilly logo

RabbitMQ Cookbook by Sigismondo Boschi, Gabriele Santomaggio

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adding a RabbitMQ cluster automatically

Often, we need to prepare OS images that will join a RabbitMQ cluster once booted.

We can easily accomplish this task with some scripting, but RabbitMQ provides a simpler and more elegant option already, which we are going to explore with this recipe.

Getting ready

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

The hosts must have the same version of RabbitMQ and Erlang.

How to do it…

In this recipe we start with two RabbitMQ core brokers that is a high-availability pair, which is the minimum condition for the cluster to work and be highly reliable. Then we configure all the other nodes as auto-configuring by writing the configuration ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required