API for Riak node information

Joshua Partogi joshua.java at gmail.com
Wed Mar 2 18:28:00 EST 2011


Hi Scott,

Thank you for the swift response. I suppose there is no PBC or HTTP
API for this yet? I will read through this function and see on how I
can use it.

Cheers,
Joshua.

On Thu, Mar 3, 2011 at 4:40 AM, Scott Lystig Fritchie
<slfritchie at snookles.com> wrote:
> Joshua Partogi <joshua.java at gmail.com> wrote:
>
> jp> I tried to look for Riak API for getting clusters information on the
> jp> wiki with no luck. Is there any API in Riak for getting the number
> jp> of node involved and alive/dead in the cluster?
>
> Joshua, the exported functions in riak_core_ring.erl are probably what
> you're looking for:
>
>    -export([fresh/0,fresh/1,fresh/2,preflist/2,
>             owner_node/1,all_members/1,num_partitions/1,all_owners/1,
>             transfer_node/3, rename_node/3, reconcile/2, my_indices/1,
>             index_owner/2,diff_nodes/2,random_node/1, random_other_node/1,
>             random_other_index/1,
>             random_other_index/2,
>             all_preflists/2,
>             get_meta/2, update_meta/3, equal_rings/2]).
>
> -Scott
>



-- 
http://twitter.com/jpartogi




More information about the riak-users mailing list