client-side ring-info funs

Tuncer Ayaz tuncer.ayaz at gmail.com
Sun Nov 1 09:24:55 EST 2009


What about adding a client-side API for getting ring-information?

I'd like to have a more up-to-date/near-time version of
{ok,Ring} = riak_ring_manager:get_my_ring().
N = length(riak_ring:all_members(Ring)).

I say up-to-date because I had it happen that get_my_ring() returned
stopped members even after waiting for the gossip_interval.

Is it the wrong approach that I want to know the current live N value
and use it in some of my riak_client:put calls?




More information about the riak-users mailing list