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

Roman Shestakov roman.shestakov at
Fri Feb 13 08:55:49 EST 2015


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

More information about the riak-users mailing list