Newbie: Compile Error

Bryan Fink bryan at basho.com
Wed Jan 20 11:00:38 EST 2010


On Wed, Jan 20, 2010 at 10:15 AM, Madireddy Samuel Vijaykumar
<mad.vijay at gmail.com> wrote:
> Thanks Bryan,
>
> How do see all the nodes that are attached on a Cluster?

>From an Erlang console (opened with 'bin/riak console' or 'bin/riak
attach'), get the claim ring from riak_ring_manager, and then ask it
for "all members":

(dev1 at 127.0.0.1)3> riak_ring:all_members(element(2,
{ok,_}=riak_ring_manager:get_my_ring())).
['dev1 at 127.0.0.1','dev2 at 127.0.0.1','dev3 at 127.0.0.1',
 'dev4 at 127.0.0.1']

The return value is a list of Riak nodes that have made claims in the ring.

-Bryan




More information about the riak-users mailing list