This is a Vagrant project powered by Chef to bring up a local Riak cluster.
Each node can run either Ubuntu 12.04 or CentOS 6.4 64-bit with 1024MB
of RAM by default. If you want to tune the OS or node/memory count, you'll
have to edit the Vagrantfile directly.
Download and install Vagrant via the Vagrant installer.
$ vagrant plugin install vagrant-berkshelf
$ vagrant plugin install vagrant-omnibus$ vagrant upEach node in the cluster is named in the form riakN — where N is a number
between 1 and the number of nodes defined for the cluster (defaults to 3).
$ vagrant ssh riak1The Vagrant boxes used in this project were created by Veewee. To view the Veewee definitions, please follow the links below:
In order to set the appropriate Erlang data types for attributes, please use
the following methods provided by erlang_template_helper:
to_erl_stringto_erl_binaryto_erl_tupleto_erl_list
Standing up a local Riak cluster within Vagrant is better than make devrel
because:
- It installs Riak on the operating system you intend to deploy on in production
- It uses the actual packages you'll deploy with in production
- It allows you to test failure scenarios that include the machine (failed disks, network partitions, etc.)
Standing up a local Riak cluster within Vagrant is worse than make devrel
because:
- It takes longer (minutes) to stand up a cluster
- It uses more resources on your local machine
- It involves VirtualBox