Skip to content

72squared/vagrant-redis-cluster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vagrant Redis Cluster

Configures a redis cluster in vagrant

The cluster is 6 redis instances running with 3 master & 3 slaves, one slave for each master.

It will allways run on the latest in the 3.0 branch of redis git repo (https://github.com/antirez/redis). To change this, change the git clone command inside ./build_redis.sh.

When redis 3.0 will be stable and released this repo will update to use master branch.

Setup

How to set up vagrant and start the cluster image.

  1. Install vagrant
  2. Install VirtualBox
  3. Clone the project locally: git clone [email protected]:Kevinlearynet/vagrant-redis-cluster.git
  4. Move into the project directory: cd vagrant-redis-cluster
  5. Install the vbguest1 plugin: vagrant plugin install vagrant-vbguest
  6. Provision the virtual machine using Vagrant: vagrant up
  7. Make sure you have the Redis CLI installed: brew install redis (Mac)
  8. Test the connection to verify everything is working: redis-cli -p 7000 (or any other cluster port)

You should now have 6 redis servers running locally 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

About

set up a vagrant vm for testing redis cluster

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages