Coder Social home page Coder Social logo

redis2-cookbook's Introduction

DESCRIPTION:

This cookbooks installs Redis 2 key-value datastore server. Redis can be installed from packages (where available) or source.

REQUIREMENTS:

For compiling from source: build-essential

ATTRIBUTES:

redis2.install_from

package to install from distro packages, any other value to install from source.

redis2.instances.default

default attributes for all redis instances, will be merged with per instance attributes

redis2.instances.instance_name

per instance configuration attributes tree

USAGE:

This cookbook implements redis instances as a definition. If you plan to run only one instance, use the redis::default_instance recipe which call a “redis_default” redis_instance. To spawn instances of redis, use the redis_instance definition, usage is pretty straight forward:

redis_instance "datastore" do
  port 8866
  data_dir "/mnt/redis/datastore"
  master master_node
end

port, data_dir and master are the only attributes directly configurable using the definition syntax. Other attributes can be configured using the normal attribute interface under the node["redis2"]["instances"][instance_name] scope. Missing attributes will be merged from node["redis2"]["instances"]["default"]

The master attribute will set up redis as a slave of a the same redis instance on another server. It will not set node["redis2"]["instances"][instance_name]["replication"]["role"] (which can be slave or master), because redis can be both at the same time (e.g. chained masters).

Recipes

  • redis2::auto - automagically call redis_instance for every instance defined in the node["redis2"]["instances"] tree.

  • redis2::default_instance - use this if you want a simple recipe with a single redis instance

It’s generally not a good idea to use the redis2::default_instance recipe. If you want a single redis instance, either use redis_instance definition or redis2::auto and define your instance in the attributes tree.

redis2-cookbook's People

Contributors

b avatar schisamo avatar mdkent avatar danielsdeleo avatar adamhjk avatar nukemberg avatar btm avatar thewoolleyman avatar mattray avatar scottmlikens avatar dougm avatar chewi avatar joewilliams avatar grantr avatar seancribbs avatar adler avatar mdxp avatar apsoto avatar akzhan avatar brynary avatar craigw avatar hobodave avatar dreamcat4 avatar lmarlow avatar mmarschall avatar mikehale avatar pcross616 avatar vishvananda avatar

Watchers

James Cloos avatar Ivan Yakovlev 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.