[TOC]
This solution helps you set up high-availability RabbitMQ cluster on Huawei Cloud Elastic Cloud Servers (ECSs). RabbitMQ is open-source message-oriented middleware developed in Erlang to implement the Advanced Message Queuing Protocol (AMQP). It supports multiple programming languages.
This solution will:
-
Create three Linux ECSs, which will be deployed in different AZs to work as RabbitMQ nodes.
-
Create three elastic IP addresses (EIPs), which will be used for internal and external communication.
-
Create a security group to enhance ECS security and set security group rules to specify ports that allow access to the ECSs.
huaweicloud-solution-build-a-highly-available-RabbitMQ-cluster
├── build-a-highly-available-RabbitMQ-cluster.tf.json -- Resource orchestration template
├── userdata
├── install_node01.sh -- Script configuration file
├── install_node02.sh -- Script configuration file
├── install_node03.sh -- Script configuration file
(Optional) Changing the RabbitMQ Password
-
Log in to the ECS console, select any of the ECSs created, and click Remote Login or use any other tool to log in to the Linux ECS.
-
On the ECS, enter the username and password and press Enter.
-
Run rabbitmqctl change_password Username New password to change the password.
Verifying Deployment of the RabbitMQ Cluster