/ansible-ha-rabbitmq-cluster

A collection of Ansible Playbooks to setup a Highly-Available RabbitMQ cluster using "Classic Style" queues.

Primary LanguageJinjaMIT LicenseMIT

ansible-ha-rabbitmq-cluster

prerequisites

  1. To setup ansible password. Run make prerequisites
  2. This project requires virtualbox and vagrant. Tested against Vagrant 2.2.6 and Virtual Box 6.1

Instructions to setup RabbitMQ cluster via Ansible.

  1. Run start-vms
  2. Run ENV=vagrant make setup-standalone-rabbits
  3. Run ENV=vagrant make cluster-rabbits
  4. Run ENV=vagrant make build-haproxy

Testing

  1. Install the requirements in scripts/
  2. Run python scripts/producer.py to publish messages to the "test" queue
  3. Run python scripts/consumer.py to read messages from the "test" queue