• Stars
    star
    106
  • Rank 324,787 (Top 7 %)
  • Language
    PHP
  • License
    MIT License
  • Created over 7 years ago
  • Updated almost 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A docker stack to create, test and benchmark a rabbitmq cluster in high availability configuration. HAProxy, php workers, node failures, network partition, persistent messages.

Docker RabbitMQ HA Cluster

โš ๏ธ This project IS NOT swarm compatible, sorry... but PR welcome โš ๏ธ

Read the documentation

A docker stack to create, test and benchmark a rabbitmq cluster in high availability configuration:

Tool Version
RabbitMQ v3.6.5
HAProxy v1.6.3
PHP v7.1
Docker v1.12+
Docker-compose v1.8+
  • HAProxy as a load balancer
  • N nodes cluster
  • Durable, Mirrored and Persistent Exchanges, Queues and Messages
  • HA custom policies
  • Parallel producers and consumers
  • Node failures and network partition experiment

If you have questions, comments or suggestions please just create issues.

โš ๏ธ Tested (works well) on Linux but bad performance on OSX (docker for MAC)

The architecture

Rabbit cluster

  • 3 RabbitMQ nodes but we can add a lot more.
  • 3 docker networks to be able to simulate network partition.
  • 1 HAProxy node to load balance request and to be "failure proof".
  • 1 default network for the consumers and producers to connect with nodes through HAProxy.

The stack

A lot of great tools (thanks to all awesome authors)

Tests / Benchmark

With this stack you will be able to experiment:

  • Load Balancing
  • Node failure
  • Network partition
  • Messages persistency
  • Message NO ACK and retries

Documentation

Setup / Start / Stop the cluster

Read the documentation for Setup / start / stop

Swarrot/SwarrotBundle

Read the documentation for Swarrot/SwarrotBundle

php-amqplib/RabbitMqBundle

Read the documentation for php-amqplib/RabbitMqBundle

Tests/Benckmark

Node failures

Read the documentation for node failures

Network partition

Read the documentation for network partition

Big cluster

Read the documentation for big cluster

TODO

  • Tests

Resources

License

The MIT License (MIT)

Copyright (c) 2017 Yannick Pereira-Reis

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

More Repositories

1

docker-satis

Docker image to run Satis (private packagist) with Satisfy User Interface. Crontab and manual build possibility
Shell
122
star
2

docker-metricbeat-example

Elasticsearch Metricbeat example configuration to monitor Host and Services with docker
Makefile
82
star
3

vagrant-elasticsearch-cluster

[NOT MAINTAINED] Create an ElasticSearch cluster with a simple single bash command. Config through environment variables: RAM, cluster name, number of nodes, network ip,...
HTML
59
star
4

material-design-resources

A list of material design resources (Frameworks, documentation, libraries,....). VueJs, ReactJs, AngularJs, Magento, Jekyll, Polymer, Ember
CSS
37
star
5

docker-permissions

A way to deal with docker volumes and users permissions. Read/write/exe in shared folder from inside the container.
Shell
23
star
6

ypereirareis.github.io

DevOps, Symfony and VueJs developer. Articles and experiences on docker, grafana, prometheus, RabbitMQ, PHP, MySQL, Admin, Nginx, Haproxy, SSH,...
JavaScript
15
star
7

symfony-monitor

A configuration example to monitor Symfony with ELK and logstash-forwarder
Makefile
9
star
8

docker-prestissimo

Docker image for Composer Prestissimo
Makefile
6
star
9

docker-CVE-2019-11043

Docker image and commands to check CVE-2019-11043 vulnerability on nginx/php-fpm applications.
Dockerfile
6
star
10

docker-php-cs-fixer

A docker image to run php-cs-fixer quickly and easily in your workspace
5
star
11

nginx-proxy-letsencrypt

Docker configuration to use letsencrypt automatically with jwilder nginx reverse proxy
Shell
5
star
12

docker-elasticsearch-and-plugins

A docker image with ELK stack and many plugins
Shell
4
star
13

doctrine-multi-step-hydration

Doctrine hydration performance benchmark
PHP
4
star
14

socketio-rxjs-example

A small example on how to use RxJs with Socket.io
JavaScript
3
star
15

docker-docker-compose

Docker image with docker, docker-compose, make, tzdata, curl, wget
3
star
16

docker-php7cc

Docker image for php7cc
Shell
3
star
17

docker-permissions-reborn

Another way to deal with volumes and user permissions. Use the USER command in your Dockerfile
PHP
3
star
18

docker-elk

Elastic(search), Logstash, Kibana and Cie
Shell
3
star
19

docker-symfony-upgrade-fixer

A docker image to run Symfony Upgrade Fixer
Shell
3
star
20

docker-ngrok

Docker image to run ngrok server
Shell
2
star
21

satisfy

Satisfy copy from ludofleury
PHP
2
star
22

docker-symfony-deprecation-detector

A docker image to run Symfony Deprecation Detector
Shell
2
star
23

docker-packetbeat-example

Elasticsearch Packetbeat example configuration to monitor network and interfaces
Shell
2
star
24

composer-hack-poc

PHP
1
star
25

symfony-installer

A symfony installer docker image
Shell
1
star
26

docker-jekyll

Docker image for Jekyll 3.7.0 and Ruby 2.5.0
Ruby
1
star
27

docker-images

All my docker images
1
star
28

docker-apache

A simple docker Apache Image
Shell
1
star
29

docker-elasticsearch-head

Docker image with elasticsearch and head plugin
1
star
30

docker-logstash-forwarder

A Docker image with logstash forwarder
Makefile
1
star
31

docker-node-modules

Docker image with node, grunt, gulp,...
Shell
1
star
32

docker-graphql-tools

A docker image with some graphql tools
1
star