Created
May 14, 2012 22:05
-
-
Save jtuple/2697719 to your computer and use it in GitHub Desktop.
This file contains hidden or 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/dev1/bin/riak-admin member_status | |
================================= Membership ================================== | |
Status Ring Pending Node | |
------------------------------------------------------------------------------- | |
valid 100.0% -- '[email protected]' | |
------------------------------------------------------------------------------- | |
Valid:1 / Leaving:0 / Exiting:0 / Joining:0 / Down:0 | |
$ ./dev/dev2/bin/riak-admin join 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 this 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 | |
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] | |
Sent join request to [email protected] | |
$ ./dev/dev1/bin/riak-admin member_status | |
================================= Membership ================================== | |
Status Ring Pending Node | |
------------------------------------------------------------------------------- | |
joining 0.0% -- '[email protected]' | |
valid 100.0% -- '[email protected]' | |
------------------------------------------------------------------------------- | |
Valid:1 / Leaving:0 / Exiting:0 / Joining:1 / Down:0 | |
$ ./dev/dev1/bin/riak-admin cluster plan | |
Staged changes: | |
(join) '[email protected]' | |
Member status after changes: | |
================================= 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/dev3/bin/riak-admin cluster join [email protected] | |
Sent join request to [email protected] | |
$ ./dev/dev4/bin/riak-admin cluster join [email protected] | |
Sent join request to [email protected] | |
$ ./dev/dev1/bin/riak-admin cluster plan | |
Staged changes: | |
(join) '[email protected]' | |
(join) '[email protected]' | |
(join) '[email protected]' | |
Member status after changes: | |
================================= Membership ================================== | |
Status Ring Pending Node | |
------------------------------------------------------------------------------- | |
valid 100.0% 25.0% '[email protected]' | |
valid 0.0% 25.0% '[email protected]' | |
valid 0.0% 25.0% '[email protected]' | |
valid 0.0% 25.0% '[email protected]' | |
------------------------------------------------------------------------------- | |
Valid:4 / Leaving:0 / Exiting:0 / Joining:0 / Down:0 | |
WARNING: Not all replicas will be on distinct nodes | |
Transfers resulting from cluster changes: 48 | |
16 transfers from '[email protected]' to '[email protected]' | |
16 transfers from '[email protected]' to '[email protected]' | |
16 transfers from '[email protected]' to '[email protected]' | |
$ ./dev/dev1/bin/riak-admin cluster commit | |
Cluster changes committed | |
$ ./dev/dev1/bin/riak-admin cluster plan | |
There are no staged changes | |
$ ./dev/dev1/bin/riak-admin member_status | |
================================= Membership ================================== | |
Status Ring Pending Node | |
------------------------------------------------------------------------------- | |
valid 25.0% 25.0% '[email protected]' | |
valid 25.0% 25.0% '[email protected]' | |
valid 25.0% 25.0% '[email protected]' | |
valid 25.0% 25.0% '[email protected]' | |
------------------------------------------------------------------------------- | |
Valid:4 / Leaving:0 / Exiting:0 / Joining:0 / Down:0 | |
$ ./dev/dev1/bin/riak-admin member_status | |
================================= Membership ================================== | |
Status Ring Pending Node | |
------------------------------------------------------------------------------- | |
valid 25.0% -- '[email protected]' | |
valid 25.0% -- '[email protected]' | |
valid 25.0% -- '[email protected]' | |
valid 25.0% -- '[email protected]' | |
------------------------------------------------------------------------------- | |
Valid:4 / Leaving:0 / Exiting:0 / Joining:0 / Down:0 | |
$ ./dev/dev1/bin/riak-admin cluster leave [email protected] | |
Success: staged leave request for '[email protected]' | |
$ ./dev/dev1/bin/riak-admin cluster force-remove [email protected] | |
Success: staged remove request for '[email protected]' | |
$ ./dev/dev1/bin/riak-admin cluster plan | |
Staged changes: | |
(leave) '[email protected]' | |
(force-remove) '[email protected]' | |
Member status after changes: | |
================================= Membership ================================== | |
Status Ring Pending Node | |
------------------------------------------------------------------------------- | |
leaving 25.0% 0.0% '[email protected]' | |
valid 25.0% 50.0% '[email protected]' | |
valid 50.0% 50.0% '[email protected]' | |
------------------------------------------------------------------------------- | |
Valid:2 / Leaving:1 / Exiting:0 / Joining:0 / Down:0 | |
WARNING: Not all replicas will be on distinct nodes | |
Partitions reassigned from cluster changes: 16 | |
16 reassigned from '[email protected]' to '[email protected]' | |
Transfers resulting from cluster changes: 16 | |
16 transfers from '[email protected]' to '[email protected]' | |
$ ./dev/dev1/bin/riak-admin cluster commit | |
Cluster changes committed | |
$ ./dev/dev1/bin/riak-admin member_status | |
================================= Membership ================================== | |
Status Ring Pending Node | |
------------------------------------------------------------------------------- | |
valid 50.0% -- '[email protected]' | |
valid 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