erlangriak

How do you start multiple nodes of riak on the same machine?


Trying to follow: http://docs.basho.com/riak/latest/quickstart/

I make multiple directories, dev1, dev2, dev3 After I start riak one time it gives me this error the second time

sudo /usr/sbin/riak start 
Node is already running!

How do I run multiple nodes from the same machine? It's only for learning purposes at this point.


Solution

  • you must start riak which is in devN directories. Kind of

    dev1/bin/riak start
    dev2/bin/riak start 
    

    etc ets.

    the point is -- riak gets settings from vm.args file. To start multiple instances of riak on the same computer you need to have multiple instances of vm.args files. Several dev directories helps you to keep as many vm.args files (and data directories) as you want