This guide is tested on Debian Wheezy with Riak 1.4.4 in my (virtualized) servers
192.168.30.2 +---------------------------------+ | | +--------->| Web server | | | | | +---------------------------------+ | | 192.168.30.3 | +---------------------------------+ | | | +--------->| Web application 1 | 1.1.1.1 192.168.30.1 | | | +-------------------+ | +---------------------------------+ | | | Internet +------>| Firewall +-------->+ 192.168.30.4 | | | +---------------------------------+ +-------------------+ | | | +--------->| Web application 2 | | | | | +---------------------------------+ | | 192.168.30.5 | +---------------------------------+ | | | +--------->| Riak-CS S3 Clone | | | +---------------------------------+
In progress…
# curl http://apt.basho.com/gpg/basho.apt.key | apt-key add -
echo deb http://apt.basho.com $(lsb_release -sc) main > /etc/apt/sources.list
# apt-get install riak riak-cs stanchion riak-cs-control
# nano /etc/riak/app.config
in riak_kv section comment (place two '%' at line start) the following line: {storage_backend, riak_kv_bitcask_backend}, and replace it with: {add_paths, ["/usr/lib/riak-cs/lib/riak_cs-1.4.4/ebin"]}, {storage_backend, riak_cs_kv_multi_backend}, {multi_backend_prefix_list, [{<<"0b:">>, be_blocks}]}, {multi_backend_default, be_default}, {multi_backend, [ {be_default, riak_kv_eleveldb_backend, [ {max_open_files, 50}, {data_root, "/var/lib/riak/leveldb"} ]}, {be_blocks, riak_kv_bitcask_backend, [ {data_root, "/var/lib/riak/bitcask"} ]} ]},
in riak_core section add: {default_bucket_props, [{allow_mult, true}]},
/etc/riak/vm.args
## This setting is not present in default Riak installations, so ## it should be added. In some cases, a value of 128000 may be ## appropriate. +zdbbl 96000
# nano /etc/riak-cs/ap.config
change {anonymous_user_creation, false} in {anonymous_user_creation, true}
riak start && riak-cs start && stanchion start && riak-cs-control start
curl -H 'Content-Type: application/json' \ -X POST http://localhost:8080/riak-cs/user \ --data '{"email":"sysadmin@example.com", "name":"admin user"}' Take a note with the response!
riak-cs-control stop ; stanchion stop ; riak-cs stop ; riak stop
# nano /etc/riak-cs/app.config
Change riak_ip value from localhost to your riak machine lan ip