Skip to content

MucahidAydin/rabbitmq-cluster-yaml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RabbitMQ Cluster with HAProxy

This project sets up a RabbitMQ cluster with HAProxy for load balancing using Docker Compose. The cluster consists of six RabbitMQ nodes and one HAProxy instance.

Prerequisites

  • Docker
  • Docker Compose

Environment Variables

Create a .env file in the root of your project with the following content:

RABBITMQ_DEFAULT_USER=your_username
RABBITMQ_DEFAULT_PASS=your_password

Running the Cluster

To start the RabbitMQ cluster with HAProxy, run the following command in the root of your project:

docker-compose up -d

This will start the RabbitMQ nodes and HAProxy in detached mode.

Accessing RabbitMQ Management

You can access the RabbitMQ Management UI at http://localhost:15672. Use the credentials specified in the .env file.

RabbitMQ Management UI - Overview

RabbitMQ Management UI - Overview

RabbitMQ Management UI - Queue

RabbitMQ Management UI - Queue

Testing the RabbitMQ Cluster

To test the RabbitMQ cluster, you can run the following command to create a queue:

python3 test/test.py

About

Docker RabbitMQ cluster

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published