Cluster aware clients

Paul Barry paul.barry at
Fri Aug 15 09:18:46 EDT 2014

We’ve been using Riak with Java client for more than two years in production, and best solution is ha-proxy.
Your Java client connects to one ha-proxy, configured for round-robin to all the nodes. We run ha-proxy on our front-ends, so clients always connect to localhost.

If you’re planning to add or remove a node, just reconfigure ha-proxy and reload it (instant with no down-time).
ha-proxy also gives you much better control over how unexpected failures are dealt with automatically.


On 15 Aug 2014, at 13:19, Simon Hartley <Simon.Hartley at> wrote:

> Hi,
> So I’m writing a Java client app. I’m running a 5 node Riak cluster and I want my client to know about all the nodes to avoid single points of failure.
> Is there a best practice for automatically updating clients when new nodes are added to a  cluster?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 496 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <>

More information about the riak-users mailing list