jellekralt / redis-cluster-playground

Redis Cluster Playground

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Redis Cluster Playground

A Redis playground that emulates a multi-dc Redis cluster setup

The cluster contains 6 Redis instances running with 3 master & 3 slaves, one slave for each master. The cluster is split over two virtual machines to simulate a dual datacenter setup.

Tech

  • Vagrant, to boot up and provision the VMs
  • Redis (obviously)
  • Node.js, for running the tests

Setup

How to set up vagrant and start the cluster image.

  1. Install Vagrant
  2. Install VirtualBox
  3. Clone this repo
  4. Provision the virtual machine using Vagrant: vagrant up

You should now have 6 redis servers running locally. They are accessible from the host at:

  • 127.0.0.1:7000
  • 127.0.0.1:7001
  • 127.0.0.1:7002
  • 127.0.0.1:7003
  • 127.0.0.1:7004
  • 127.0.0.1:7005

Internally, the two VM's run in a private network, at:

  • 10.0.0.11:7000
  • 10.0.0.11:7001
  • 10.0.0.11:7002
  • 10.0.0.12:7003
  • 10.0.0.12:7004
  • 10.0.0.12:7005

About

Redis Cluster Playground


Languages

Language:Ruby 79.1%Language:JavaScript 17.8%Language:Shell 3.0%