Is there a way to efficiently do a coverage call to vnodes local to the given host?

Russell Brown russell.brown at me.com
Fri Feb 13 09:02:58 EST 2015


Not to be rude, because I think this is a good question and warrants an answer: but you might have more luck on the riak-core list

http://lists.basho.com/mailman/listinfo/riak-core_lists.basho.com

Cheers

Russell

On 13 Feb 2015, at 13:55, Roman Shestakov <roman.shestakov at gmail.com> wrote:

> Hello,
> 
> I am wandering if there is a way to do the following in riak_core
> 
> 1. I need to collect data from all the vnodes which are currently located on a given node.
> 2. I understand that it is ether possible to make a call to vnode given the hash key or it's possible to make a coverage call to all vnodes in the cluster.
> 3 . But in my case I only need to get all the data from vnodes living on a given physical host. 
> 
> Is there a well defined way of doing this?
> 
> I can see in api there is a riak_core_apl:active_owners call which returns Indexnodes pairs so it is possible to filter by a node and the call each Indexnode with riak_core_vnode_master:synch_spawn_command but maybe there is a better way of doing this?
> 
> Regards, Roman
> 
> Sent from my iPhone
> _______________________________________________
> riak-users mailing list
> riak-users at lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com





More information about the riak-users mailing list