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.
How to set up vagrant and start the cluster image.
git clone git@github.com:Kevinlearynet/vagrant-redis-cluster.git
cd vagrant-redis-cluster
vagrant plugin install vagrant-vbguest
vagrant up
brew install redis
(Mac)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