Created
July 13, 2012 00:01
-
-
Save jtuple/3101934 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ./dev/dev2/bin/riak-admin join [email protected] | |
The 'join' command has been deprecated in favor of the new | |
clustering commands provided by 'riak-admin cluster'. To continue | |
using the deprecated 'join' command, use 'join -f' | |
$ ./dev/dev2/bin/riak-admin cluster | |
Usage: riak-admin cluster <command> | |
The following commands stage changes to cluster membership. These commands | |
do not take effect immediately. After staging a set of changes, the staged | |
plan must be committed to take effect: | |
join <node> Join node to the cluster containing <node> | |
leave Have this node leave the cluster and shutdown | |
leave <node> Have <node> leave the cluster and shutdown | |
force-remove <node> Remove <node> from the cluster without | |
first handing off data. Designed for | |
crashed, unrecoverable nodes | |
replace <node1> <node2> Have <node1> transfer all data to <node2>, | |
and then leave the cluster and shutdown | |
force-replace <node1> <node2> Reassign all partitions owned by <node1> to | |
<node2> without first handing off data, and | |
remove <node1> from the cluster. | |
Staging commands: | |
plan Display the staged changes to the cluster | |
commit Commit the staged changes | |
clear Clear the staged changes | |
$ ./dev/dev2/bin/riak-admin cluster join [email protected] | |
Success: staged join request for '[email protected]' to '[email protected]' | |
$ ./dev/dev2/bin/riak-admin cluster commit | |
You must verify the plan with 'riak-admin cluster plan' before committing | |
$ ./dev/dev2/bin/riak-admin cluster plan | |
=============================== Staged Changes ================================ | |
Action Nodes(s) | |
------------------------------------------------------------------------------- | |
join '[email protected]' | |
------------------------------------------------------------------------------- | |
NOTE: Applying these changes will result in 1 cluster transition | |
############################################################################### | |
After cluster transition 1/1 | |
############################################################################### | |
================================= Membership ================================== | |
Status Ring Pending Node | |
------------------------------------------------------------------------------- | |
valid 100.0% 50.0% '[email protected]' | |
valid 0.0% 50.0% '[email protected]' | |
------------------------------------------------------------------------------- | |
Valid:2 / Leaving:0 / Exiting:0 / Joining:0 / Down:0 | |
WARNING: Not all replicas will be on distinct nodes | |
Transfers resulting from cluster changes: 32 | |
32 transfers from '[email protected]' to '[email protected]' | |
$ ./dev/dev2/bin/riak-admin cluster commit | |
Cluster changes committed | |
$ ./dev/dev2/bin/riak-admin member_status | |
================================= Membership ================================== | |
Status Ring Pending Node | |
------------------------------------------------------------------------------- | |
valid 93.8% 50.0% '[email protected]' | |
valid 6.3% 50.0% '[email protected]' | |
------------------------------------------------------------------------------- | |
Valid:2 / Leaving:0 / Exiting:0 / Joining:0 / Down:0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment