All Projects → ypereirareis → docker-rabbitmq-ha-cluster

ypereirareis / docker-rabbitmq-ha-cluster

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

Programming Languages

PHP
23972 projects - #3 most used programming language
Makefile
30231 projects
shell
77523 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to docker-rabbitmq-ha-cluster

Php Amqplib
The most widely used PHP client for RabbitMQ
Stars: ✭ 3,950 (+3930.61%)
Mutual labels:  rabbitmq, php-amqplib
terraform-aws-rabbitmq
A terraform module to deploy a rabbitmq cluster with AutoScaling Group and Load Balancer
Stars: ✭ 25 (-74.49%)
Mutual labels:  rabbitmq, rabbitmq-cluster
Kubernetes Pfsense Controller
Integrate Kubernetes and pfSense
Stars: ✭ 100 (+2.04%)
Mutual labels:  cluster, haproxy
micro-service-practice
OpenStack+Docker+RestAPI+OAuth/HMAC+RabbitMQ/ZMQ+OpenResty/HAProxy/Nginx/APIGateway+Bootstrap/AngularJS+Ansible+K8S/Mesos/Marathon构建/探索微服务最佳实践。
Stars: ✭ 25 (-74.49%)
Mutual labels:  rabbitmq, haproxy
Scaleable Crawler With Docker Cluster
a scaleable and efficient crawelr with docker cluster , crawl million pages in 2 hours with a single machine
Stars: ✭ 96 (-2.04%)
Mutual labels:  rabbitmq, cluster
Docker Cluster With Celery And Rabbitmq
Build Docker clusters with Celery and RabbitMQ in 10 minutes
Stars: ✭ 72 (-26.53%)
Mutual labels:  rabbitmq, cluster
rabbitmq-operator
RabbitMQ Kubernetes operator
Stars: ✭ 16 (-83.67%)
Mutual labels:  rabbitmq, rabbitmq-cluster
Docker Cloud Platform
使用Docker构建云平台,Docker云平台系列共三讲,Docker基础、Docker进阶、基于Docker的云平台方案。OpenStack+Docker+RestAPI+OAuth/HMAC+RabbitMQ/ZMQ+OpenResty/HAProxy/Nginx/APIGateway+Bootstrap/AngularJS+Ansible+K8S/Mesos/Marathon构建/探索微服务最佳实践。
Stars: ✭ 86 (-12.24%)
Mutual labels:  rabbitmq, haproxy
kube-template
Watches Kubernetes for updates, writing output of a series of templates to files
Stars: ✭ 27 (-72.45%)
Mutual labels:  cluster, haproxy
celery-connectors
Want to handle 100,000 messages in 90 seconds? Celery and Kombu are that awesome - Multiple publisher-subscriber demos for processing json or pickled messages from Redis, RabbitMQ or AWS SQS. Includes Kombu message processors using native Producer and Consumer classes as well as ConsumerProducerMixin workers for relay publish-hook or caching
Stars: ✭ 37 (-62.24%)
Mutual labels:  rabbitmq, rabbitmq-cluster
mom
Proof of concept for Message-Oriented-Middleware based architecture.
Stars: ✭ 39 (-60.2%)
Mutual labels:  rabbitmq
raspberrypi-boot
simple spring boot application running on raspberry pi measuring data via bmp085 sensor
Stars: ✭ 17 (-82.65%)
Mutual labels:  rabbitmq
ponos
An opinionated queue based worker server for node.
Stars: ✭ 85 (-13.27%)
Mutual labels:  rabbitmq
varnishtraining
Second iteration of my Varnish training. This version is specifically created for the Symfony Live Berlin 2017 workshop I've presented.
Stars: ✭ 31 (-68.37%)
Mutual labels:  haproxy
chinchilla
Making RabbitMq More Awesome!
Stars: ✭ 38 (-61.22%)
Mutual labels:  rabbitmq
triton
Triton is a high-performance mq consumer, support kafka,rabbit-mq,rocketmq,nsq and other mq
Stars: ✭ 19 (-80.61%)
Mutual labels:  rabbitmq
lb-manager
No description or website provided.
Stars: ✭ 19 (-80.61%)
Mutual labels:  haproxy
rabbitmq-vshovel
RabbitMQ vShovel plugin
Stars: ✭ 26 (-73.47%)
Mutual labels:  rabbitmq
pulseha
PulseHA is a active-passive high availability cluster daemon that uses GRPC and is written in GO.
Stars: ✭ 15 (-84.69%)
Mutual labels:  cluster
Hemuer
An AI Tool to record expressions of users as they watch a video and then visualize the funniest parts of it!
Stars: ✭ 22 (-77.55%)
Mutual labels:  rabbitmq

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].