Coder Social home page Coder Social logo

mirrored-rabbitmq-cluster's Introduction

Setting up a mirrored RabbitMQ cluster

Linux AMI 2015.03.0 x86_64 HVM GP2, Amazon Linux, Img Size 8GB, 2CPUs, ~couple GB swap space Create a security group for RabbitMQ, "rabbit"

  • All TCP should be allowed from itself
  • Custom TCP 5672 port allowed from security group on app server
  • (optional) Custom TCP15672 port allowed for any specific ips you'll use to login to RabbitMQ

Once the security groups have been set up

  • Run rabbitmq-user-data.sh on the master node
  • Run get-erlang-cookie on the master node and copy/write down the cookie
  • Run rabbitmq-user-data.sh on the slave node
  • Run update-erlang-cookie on slave using the cookie from #2
  • Run add-slave-to-cluster on slave with @ip-
  • Setup Nginx or an internal ELB to handle failovers
  • Healthcheck: ping target: TCP : 5672

Files:

  • rabbitmq-user-data.sh
  • get-erlang-cookie.sh
  • update-erlang-cookie.sh
  • add-slave-to-cluster.sh

mirrored-rabbitmq-cluster's People

Contributors

jpdurham avatar

Watchers

 avatar

Forkers

openinga

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.