Skip to content

@mrnugget /instructions.sh
Last active

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Installing Riak 1.2.1 on OS X Mountain Lion with Erlang R15B01
$ brew update
$ cd `brew --prefix`
# Use erlang formula for Erlang R15B01
$ git checkout 6b8d25f Library/Formula/erlang.rb
$ brew install erlang
# Reset formula
$ git reset HEAD Library/Formula/erlang.rb
$ git checkout -- Library/Formula/erlang.rb
# Download and install Riak 1.2.1
$ cd ~/code
$ curl -O http://downloads.basho.com.s3-website-us-east-1.amazonaws.com/riak/1.2/1.2.1/riak-1.2.1.tar.gz
$ tar zxvf riak-1.2.1.tar.gz
$ cd riak-1.2.1
$ make rel
# Install a development cluster
$ make devrel
$ ls dev/
dev1 dev2 dev3 dev4
$ dev/dev1/bin/riak start
$ curl localhost:8091/stats
# Start two more nodes
$ dev/dev2/bin/riak start
$ dev/dev3/bin/riak start
# Join the nodes
$ dev/dev2/bin/riak-admin cluster join dev1@127.0.0.1
Success: staged join request for 'dev2@127.0.0.1' to 'dev1@127.0.0.1'
$ dev/dev3/bin/riak-admin cluster join dev2@127.0.0.1
Success: staged join request for 'dev3@127.0.0.1' to 'dev2@127.0.0.1'
$ dev/dev1/bin/riak-admin cluster plan
=============================== Staged Changes ================================
Action Nodes(s)
-------------------------------------------------------------------------------
join 'dev2@127.0.0.1'
join 'dev3@127.0.0.1'
-------------------------------------------------------------------------------
NOTE: Applying these changes will result in 1 cluster transition
###############################################################################
After cluster transition 1/1
###############################################################################
================================= Membership ==================================
Status Ring Pending Node
-------------------------------------------------------------------------------
valid 100.0% 34.4% 'dev1@127.0.0.1'
valid 0.0% 32.8% 'dev2@127.0.0.1'
valid 0.0% 32.8% 'dev3@127.0.0.1'
-------------------------------------------------------------------------------
Valid:3 / Leaving:0 / Exiting:0 / Joining:0 / Down:0
WARNING: Not all replicas will be on distinct nodes
Transfers resulting from cluster changes: 42
21 transfers from 'dev1@127.0.0.1' to 'dev3@127.0.0.1'
21 transfers from 'dev1@127.0.0.1' to 'dev2@127.0.0.1'
$ dev/dev1/bin/riak-admin cluster commit
Cluster changes committed
$ curl localhost:8091/stats | jsonpp
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 3696 100 3696 0 0 42057 0 --:--:-- --:--:-- --:--:-- 43482
{
"vnode_gets": 0,
"vnode_gets_total": 0,
"vnode_puts": 0,
"vnode_puts_total": 0,
"vnode_index_reads": 0,
"vnode_index_reads_total": 0,
"vnode_index_writes": 0,
"vnode_index_writes_total": 0,
"vnode_index_writes_postings": 0,
"vnode_index_writes_postings_total": 0,
"vnode_index_deletes": 0,
"vnode_index_deletes_total": 0,
"vnode_index_deletes_postings": 0,
"vnode_index_deletes_postings_total": 0,
"node_gets": 0,
"node_gets_total": 0,
"node_get_fsm_siblings_mean": 0,
"node_get_fsm_siblings_median": 0,
"node_get_fsm_siblings_95": 0,
"node_get_fsm_siblings_99": 0,
"node_get_fsm_siblings_100": 0,
"node_get_fsm_objsize_mean": 0,
"node_get_fsm_objsize_median": 0,
"node_get_fsm_objsize_95": 0,
"node_get_fsm_objsize_99": 0,
"node_get_fsm_objsize_100": 0,
"node_get_fsm_time_mean": 0,
"node_get_fsm_time_median": 0,
"node_get_fsm_time_95": 0,
"node_get_fsm_time_99": 0,
"node_get_fsm_time_100": 0,
"node_puts": 0,
"node_puts_total": 0,
"node_put_fsm_time_mean": 0,
"node_put_fsm_time_median": 0,
"node_put_fsm_time_95": 0,
"node_put_fsm_time_99": 0,
"node_put_fsm_time_100": 0,
"read_repairs": 0,
"read_repairs_total": 0,
"coord_redirs_total": 0,
"executing_mappers": 0,
"precommit_fail": 0,
"postcommit_fail": 0,
"pbc_active": 0,
"pbc_connects": 0,
"pbc_connects_total": 0,
"cpu_nprocs": 157,
"cpu_avg1": 205,
"cpu_avg5": 292,
"cpu_avg15": 284,
"mem_total": 4125264000,
"mem_allocated": 3796740000,
"nodename": "dev1@127.0.0.1",
"connected_nodes": [
"dev2@127.0.0.1",
"dev3@127.0.0.1"
],
"sys_driver_version": "2.0",
"sys_global_heaps_size": 0,
"sys_heap_type": "private",
"sys_logical_processors": 4,
"sys_otp_release": "R15B01",
"sys_process_count": 719,
"sys_smp_support": true,
"sys_system_version": "Erlang R15B01 (erts-5.9.1) [source] [64-bit] [smp:4:4] [async-threads:64] [hipe] [kernel-poll:true] [dtrace]",
"sys_system_architecture": "i386-apple-darwin12.1.0",
"sys_threads_enabled": true,
"sys_thread_pool_size": 64,
"sys_wordsize": 8,
"ring_members": [
"dev1@127.0.0.1",
"dev2@127.0.0.1",
"dev3@127.0.0.1"
],
"ring_num_partitions": 64,
"ring_ownership": "[{'dev3@127.0.0.1',21},{'dev2@127.0.0.1',21},{'dev1@127.0.0.1',22}]",
"ring_creation_size": 64,
"storage_backend": "riak_kv_bitcask_backend",
"erlydtl_version": "0.7.0",
"riak_control_version": "1.2.0",
"cluster_info_version": "1.2.2",
"riak_api_version": "1.2.0",
"riak_search_version": "1.2.1",
"merge_index_version": "1.2.1",
"riak_kv_version": "1.2.1",
"riak_pipe_version": "1.2.1",
"riak_core_version": "1.2.1",
"lager_version": "1.2.0",
"syntax_tools_version": "1.6.8",
"compiler_version": "4.8.1",
"bitcask_version": "1.5.2",
"basho_stats_version": "1.0.2",
"luke_version": "0.2.5",
"webmachine_version": "1.9.2",
"mochiweb_version": "1.5.1",
"inets_version": "5.9",
"erlang_js_version": "1.2.1",
"runtime_tools_version": "1.8.8",
"os_mon_version": "2.2.9",
"riak_sysmon_version": "1.1.2",
"ssl_version": "5.0.1",
"public_key_version": "0.15",
"crypto_version": "2.1",
"sasl_version": "2.2.1",
"stdlib_version": "1.18.1",
"kernel_version": "2.15.1",
"memory_total": 21135752,
"memory_processes": 5107716,
"memory_processes_used": 5107656,
"memory_system": 16028036,
"memory_atom": 429569,
"memory_atom_used": 414437,
"memory_binary": 154712,
"memory_code": 9600007,
"memory_ets": 1090008,
"ignored_gossip_total": 0,
"rings_reconciled_total": 42,
"rings_reconciled": 0,
"gossip_received": 9,
"rejected_handoffs": 0,
"handoff_timeouts": 0,
"converge_delay_min": 32352,
"converge_delay_max": 6358560,
"converge_delay_mean": 622856,
"converge_delay_last": 32352,
"rebalance_delay_min": 0,
"rebalance_delay_max": 0,
"rebalance_delay_mean": 0,
"rebalance_delay_last": 0,
"riak_kv_vnodes_running": 22,
"riak_kv_vnodeq_min": 0,
"riak_kv_vnodeq_median": 0,
"riak_kv_vnodeq_mean": 0,
"riak_kv_vnodeq_max": 0,
"riak_kv_vnodeq_total": 0,
"riak_pipe_vnodes_running": 22,
"riak_pipe_vnodeq_min": 0,
"riak_pipe_vnodeq_median": 0,
"riak_pipe_vnodeq_mean": 0,
"riak_pipe_vnodeq_max": 0,
"riak_pipe_vnodeq_total": 0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.