Search code examples
riak

Discovering all Riak nodes from a known node?


If I know one the IP address of one Riak node, how do I use the Riak API to discover the other nodes?

Update 2013-10-22 5:37 PM CST: One of the reasons I want to do this is to detect network partitions. Being aware of them could be helpful. If my dev-ops infrastructure knows the list of Riak machines, then I could (as needed) contact each node and make sure that all are connected. If not, then it tells me that something in the dev-ops code isn't quite right or something else went wrong.


Solution

  • Connect to http://my-riak-node:8098/stats and inspect ring_members, which contains the "list of nodes which are members of the ring" according to the Riak HTTP API.