> Of course I have yet another question. Even if I assume the state of each
> node is correct, how do I know if the cluster overall is considered healthy?
> This may not be a valid question, but I hope it is. For example, if the
> cluster configuration requires 3 nodes to write, I can write some
Thanks for this. I think in the end I'm going to assume there's
sufficient traffic that the node state that riak-java-client keeps track
of is up to date enough.
Of course I have yet another question. Even if I assume the state of
each node is correct, how do I know if the cluster overall is
Besides just plainly writing a key, you could also do something like (pseudo
code):
Riak.put(canaryKey, pw=n_val){
If ok -> cool!
If borked -> sad face
}
The important bit is the pw (primary write) equals your replication value. This
means that all copies in the virtual node replica set ne
I'm still curious what people think here. As I stare at this longer,
I'd like to be able to call RiakNode.checkHealth(), but it's private.
HealthMonitorTask.run that only calls checkHealth some of the time, so
without the ability to call it directly, I think I'm getting a stale
notion of heal
I'm implementing a health check for a service of mine that uses riak.
I've seen this code from
https://github.com/basho/riak-java-client/issues/456:
RiakCluster cluster = clientInstance.getRiakCluster();
List nodes = cluster.getNodes();
for (RiakNode node : nodes)
{
State state = node.getNode