Skip to content

Instantly share code, notes, and snippets.

@drewkerrigan
Created December 10, 2013 21:45
Show Gist options
  • Save drewkerrigan/7900789 to your computer and use it in GitHub Desktop.
Save drewkerrigan/7900789 to your computer and use it in GitHub Desktop.
Riak CRDT Demo

Erlang

Install Erlang R16B02 using kerl

curl -O https://raw.github.com/spawngrid/kerl/master/kerl; chmod a+x kerl

Create ~/.kerlrc

KERL_CONFIGURE_OPTIONS="--disable-hipe --enable-smp-support --enable-threads
                        --enable-kernel-poll  --enable-darwin-64bit"

Build, install, and activate R16B02

./kerl build R16B02 r16b02
./kerl install r16b02 ~/erlang/r16b02
. ~/erlang/r16b02/activate

More information about kerl and those commands here

Riak

Download and build Riak

mkdir -p /opt/riak
cd /opt/riak
git clone [email protected]:basho/riak.git riak-2.0.0pre7
cd riak-2.0.0pre7
git checkout riak-2.0.0pre7
make rel

Start Riak

ulimit -n 4096 ; ./rel/riak/bin/riak start

Ruby

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment