Creating a cluster with two EC2 instances
In this recipe we are going to create a RabbitMQ cluster on Amazon AWS. We will create the cluster inside a VPC (http://aws.amazon.com/vpc/). A VPC is a private network on the cloud, protected from the outside network, so we don't need to configure any firewall.
The schema we are going to create contains one VPC with the following two subnets:
- A public subnet accessible from the Internet
- A private subnet that contains two machines configured as a RabbitMQ cluster
- The subnets are shown in the following diagram:
Getting ready
You need an AWS account.
How to do it…
In order to create the schema, AWS provides a ready ...
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.