Creating a RabbitMQ Cluster in the Cloud

In preparation for a fast-moving need for some RabbitMQ consulting, I am working with an associate to set up a 3-node cluster of RabbitMQ brokers on Cloud infrastructure at Digital Ocean. We first created 3 machines, rabbitmq-0, rabbitmq-1, and rabbitmq-2 using Terraform and set private_networking to true. RabbitMQ chose Erlang for execution because it was designed to solve concurrency issues. Erlang does, however need to communicate between nodes using their hostnames. This means that each machine needs hostname entries for the outside machines using their private eth1 IP addresses. Here’s an example of a host file from rabbitmq-0:

Leave a Reply

Wow, 1,279 people read this.