Reputation: 155
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?
Upvotes: 1
Views: 165
Reputation: 111
When the nodes restart, they try to reconnect automatically, because when you joined some nodes with the command
riak_core:join("[email protected]")
the data is saved locally to the node. If you want remove a node from cluster you should call
riak_core:leave()
Upvotes: 1