Giter Site home page Giter Site logo

chef-nutcracker's Introduction

nutcracker Chef Cookbook

This cookbook installs twitter/twemproxy (nutcracker).

It just downloads source from Github, compiles and installs. You can set up custom configure flags or compiler environment variables via attributes if needed.

NOTE: The configuration of this has changed significantly from version 1.0 to version 1.1.
We are no longer using data_bags to configure instances, we're using attributes now.

Installation

Add a submodule dependency to your project, I'm assuming here that chef/cookbooks/ is the sub-directory where you want your cookbook dependencies installed. Whatever path you choose to check it out to, make sure that is in your cookbook search path.

$ git submodule add https://github.com/vube/chef-nutcracker chef/cookbooks/chef-nutcracker

In your metadata.rb

depends "chef-nutcracker"

In your recipe.rb

include_recipe "chef-nutcracker"

Configuration

To configure this you must configure the node['nutcracker']['instances'] attribute.

Examples

Single nutcracker instance

default['nutcracker']['instances']['my_instance'] = {
    'port' => 22122,
    'servers' => ['localhost:6375:1', 'localhost:6379:1']
}

Single nutcracker instance using memcache

default['nutcracker']['instances']['my_instance'] = {
    'port' => 22122,
    'redis' => false,
    'servers' => ['localhost:6375:1', 'localhost:6379:1']
}

Multiple nutcracker instances on different ports

default['nutcracker']['instances']['my_instance_1'] = {
    'port' => 22122,
    'status_port' => 8622,
    'servers' => ['localhost:6375:1', 'localhost:6379:1']
}
default['nutcracker']['instances']['my_instance_2'] = {
    'port' => 33233,
    'status_port' => 8623,
    'servers' => ['localhost:7486:1', 'localhost:7480:1']
}

chef-nutcracker's People

Contributors

ross-p avatar jagalan avatar

Watchers

Brian Rumschlag avatar James Cloos 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.