andreisavu / riak-ec2-cluster-launcher

A Python script to launch an N-node Riak cluster

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Riak EC2 Cluster Launcher

Dependencies

launch.py is a simple Python script to launch an N-node Riak cluster. The requirements can be installed with:

virtualenv --distribute sandbox
. sandbox/bin/activate
pip install -r requirements.txt 

To run the command you will also need an EC2 account, and your environment variables set as described here.

Sample ~/.boto file:

[Boto]
debug = 0
num_retries = 10
[Credentials]
aws_access_key_id = ACCESS_KEY
aws_secret_access_key = SECRET_KEY

Usage

# key_filename is the name of an EC2 Key Pair
# key_filepath is the full path to the private key
# for the key in key_filepath
# The key will be used to ssh into the master node,
# and wait for Riak to be running
./launch.py key_filename key_filepath user_data.sh 100

Limitations

Make sure you update the links in "user_data.sh" to point to your fork.

About

A Python script to launch an N-node Riak cluster


Languages

Language:Python 87.7%Language:Shell 12.3%