This package provides a small cluster of riak nodes running in one virtual machine each. This allows to test out riak in its natural environment with failing and restarting machines and everything :).
$ git clone https://github.com/asquera/vagrant-riak-cluster.git
$ gem install vagrant
$ vagrant up
This fires up 4 vms with riak installed and configured. If you want less vms, just start them by hand:
$ vagrant up riak1 riak2 riak3
All you have to do is to join them together. Navigate to:
https://33.33.33.220:8068/admin/ui/index.html
Click on "cluster" and add the following additional nodes to the cluster:
riak@33.33.33.221
riak@33.33.33.222
riak@33.33.33.223
All nodes are bound to 0.0.0.0, using the following port mapping:
http
:8098
https
:8068
protocol buffers
:8087
handoff
:8099
All scripts and configurations are intended for testing purposes. For example, the setup uses the demo certificates provided by basho. Don't use this setup in production without checking all settings.
Very welcome! If you know a better way to solve things, please send a pull request!