1

I am trying to setup a simple distributed application using erlang riak core framework. I read the documentation and it says I have to manually join the nodes via riak admin commands. I wanted to know what would happen if the entire cluster goes down.Do i need to have logic in my code to do a join on nodes every time cluster starts up or if there is a way to enlist all the nodes in a config?

Shank
  • 135
  • 1
  • 7

1 Answers1

1

When the nodes restart, they try to reconnect automatically, because when you joined some nodes with the command

riak_core:join("dev_1@127.0.0.1")

the data is saved locally to the node. If you want remove a node from cluster you should call

riak_core:leave()