Giter Site home page Giter Site logo

scastillo / cassandra-opsworks-chef-cookbook Goto Github PK

View Code? Open in Web Editor NEW

This project forked from skyebook/cassandra-opsworks-chef-cookbook

0.0 2.0 0.0 90 KB

This is an OpsCode Chef cookbook for Apache Cassandra

Ruby 12.14% Shell 10.93% HTML 76.93%

cassandra-opsworks-chef-cookbook's Introduction

Apache Cassandra Chef Cookbook (for OpsWorks)

This is an OpsCode Chef cookbook for Apache Cassandra (DataStax Community Edition).

It uses officially released Debian packages, provides Upstart service script but has no way to tweak Cassandra configuration parameters using Chef node attributes. The reason for that is it was created for CI and development environments. Attributes will be used in the future, doing so for single-server installations won't be difficult.

This has been forked from Michael Klishin's awesome cookbook to include more specific OpsWorks support.

Apache Cassandra Version

This cookbook currently provides

  • Cassandra 2.0.0 (DataStax Community Edition) via packages.
  • Automatic Seed assignment from the Deployment JSON passed in by OpsWorks.

Supported OS Distributions

Ubuntu 11.04, 11.10, 12.04, 12.10.

Recipes

  • I have removed the upstream recipe cassandra-opsworks::tarball and have kept only the installation via cassandra-opsworks::datastax
  • You will want to run cassandra-opsworks::opsworks to have your configuration files copied over, however.
  • cassandra-opsworks::ephemeral_xfs Reconfigures your instance store volume (only one for now, /dev/xvdb) as XFS. This deletes any data on the volume.

Attributes

  • node[:cassandra][:version] (default: a recent patch version): version to provision
  • node[:cassandra][:user]: username Cassandra node process will use
  • node[:cassandra][:jvm][:xms] (default: 32) and node[:cassandra][:jvm][:xmx] (default: 512) control JVM -Xms and -Xms flag values, in megabytes (no need to add the m suffix)
  • node[:cassandra][:installation_dir] (default: /usr/local/cassandra): installation directory
  • node[:cassandra][:data_root_dir] (default: /var/lib/cassandra): data directory root
  • node[:cassandra][:log_dir] (default: /var/log/cassandra): log directory
  • node[:cassandra][:rpc_address] (default: localhost): address to bind the RPC interface
  • node[:cassandra][:rpc_address] (default: EC2Snitch): Snitch to use. The default is only meant to be used between availability zones in a single region. See notes in next section if the multi-region snitch is desired.

Helpful Details

  • Authentication is enabled by default, you may log in with cqlsh ip_address -u cassandra -p cassandra - it goes without saying that you should change the username and password before putting anything in production :)
  • At the same time you're changing the default password you'll want to change the replication factor for the system_auth keyspace. From the cqlsh prompt, run ALTER KEYSPACE system_auth WITH REPLICATION = {'class' : 'SimpleStrategy', 'replication_factor': 3};
  • The seed list is currently generated from the list of private IP addresses within the OpsWorks cassandra layer. To use any sort of multi-region function you'll need to use public IP addresses in the seed list (and use the multi-region snitch: EC2MultiRegionSnitch)

Dependencies

OracleJDK 7, OpenJDK 7, OpenJDK 6 or Sun JDK 6.

Copyright & License

Opsworks Fork

Skye Book, 2013.

Released under the Apache 2.0 License.

Upstream

Michael S. Klishin, Travis CI Development Team, 2012.

Released under the Apache 2.0 License.

cassandra-opsworks-chef-cookbook's People

Contributors

calebgroom avatar iconara avatar ifesdjeen avatar mbiermann avatar michaelklishin avatar samstokes avatar scastillo avatar skyebook avatar

Watchers

 avatar  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.