Setting up my Riak architecture

Hector Castro hector at
Wed Jul 24 09:49:57 EDT 2013

Hi Maksymilian,

My response is inline below.


On Wed, Jul 24, 2013 at 8:51 AM, prog112 <prog112 at> wrote:
> Hello.
> I'm currently developing my database relationships with my other server
> applications and I'm having a hard time figuring out how to approach it.
> Here's what I'm wondering about:
> 1) How does accessing Riak really work? Currently I'm having one machine
> with all my tools (Riak, master server, dynamic game server instnaces) on
> it. My database is set up on in /etc/riak/app.config does it mean
> it can only be accessed from localhost?

We recommend that production Riak deployments run with at least 5
nodes. There are several reasons why we recommend 5, and they're
outlined pretty well in this post. [0]

If you want Riak to only be accessible via the local host, then
binding to works. If you want to communicate with Riak from
other nodes, bind to an address that is accessible to the other nodes,

> 2) Say later on I'm going to have more seperate machines to run my game
> server nodes. My game servers do require to get some info about players from
> the database. Should I connect to database directly from those game servers
> instances or should I do it via master server? Won't master server get too
> much traffic then though? How can I connect to database from my game servers
> anyway if they're at separate machines?

Any node in a Riak cluster can coordinate requests for any other Riak
node that is responsible for the data you're reading/writing. That
said, it's common for users to deploy Riak clusters behind a load
balancer that evenly distributes requests to each node in the cluster.

Hope that helps.

> What do you guys think? All feedback will be very appreciated.


> --
> View this message in context:
> Sent from the Riak Users mailing list archive at
> _______________________________________________
> riak-users mailing list
> riak-users at

More information about the riak-users mailing list