Giter Club home page Giter Club logo

vagrant-redis-cluster's Introduction

Vagrant Redis Cluster

This is a simple Vagrant-based setup using VirtualBox for a n-node Redis cluster.

Each box is provisioned using Puppet and Puppet Librarian to install Redis.

After cloning the repository, you will need to edit the Vagrantfile and change this to the number of slave nodes you wish to set up:

REDIS_SLAVE_INSTANCES = 2

If you wish to only set up a master node, set this to 0.

At the command line, run

vagrant up

If you wish to ssh to a node, you will need to use the name of the machine:

vagrant ssh master_node

The name of the machines are listed in the .vagrant/machines directory:

$ ls .vagrant/machines
master_node
slave_node_0
slave_node_1
...
etc.

You should verify the slaves have synced with the master node by ssh'ing into the slave nodes and tailing the logs under /var/log/redis.log.

Redis Server Configuration

The Redis server is configured using a combination of Puppet facts and a template. An example working configuration template is under

puppet/templates/redis/redis.conf.erb

Variables are defined in the Vagrantfile and passed along as Puppet options into the Puppet manifest file:

puppet/manifests/redis/redis.pp

The Vagrantfile can be modified to define how many nodes to create, what internal IPs to use, etc.

References:

vagrant-redis-cluster's People

Contributors

tquach avatar

Watchers

James Cloos avatar Frank Chen avatar

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.