Running multiple Riak instances.

Misha Gorodnitzky misaka at
Sun Jul 25 10:00:09 EDT 2010

Hi all,

I'm trying to run multiple instances of Riak on my server with the
goal to run both the staging environment and eventually the production
environment on the same server (I only have one for this project).
This is an Ubuntu server and if at all possible I'd prefer not to
build Riak from source, although I understand that it would be easier
to have multiple instances running that way. I would rather keep
software managed with the package manager here.

What I've done is I've modified /usr/sbin/riak to allow specifying the
config files to use (app.config, vm.args), the log dir, run dir (for
the pipe) and the home dir, and I can startup an instance of Riak
using my "staging" environment. However, when I try to start up the
second Riak instance, it fails with just a couple of things
out-of-the-ordinary in it's logs:

  =INFO REPORT==== 25-Jul-2010::13:54:35 ===
      application: riak_kv
      exited: {shutdown,{riak_kv_app,start,[normal,[]]}}
      type: permanent
  =INFO REPORT==== 25-Jul-2010::13:54:35 ===
      alarm_handler: {clear,system_memory_high_watermark}
  {"Kernel pid terminated",application_controller,"{application_start_failure,riak_kv,{shutdown,{riak_kv_app,start,[normal,[]]}}}"}^M
  Kernel pid terminated (application_controller)

And the Riak process that's already running logs this:

  ** Connection attempt from disallowed node 'riak_staging at' **

Any ideas what this might be? Has anyone managed to do this using the
Riak .deb package?



More information about the riak-users mailing list