[erlang-questions] How to dynamically add one node to erlang's distrubted application?

Andrew Stone <>
Tue Sep 9 17:08:48 CEST 2008


You can start the 4th node and do a net_kernel:connect to one of the other nodes. Just make sure that the cookies are the same on all nodes.



----- Original Message ----
From: devdoer bird <>
To: 
Sent: Tuesday, September 9, 2008 3:46:00 AM
Subject: [erlang-questions] How to dynamically add one node to erlang's distrubted application?


HI:
I have a distrbuted system  using erlang's distributed application mechanism.It firstly ran on 3 nodes with the config file like this:
 
[{kernel,
  [{distributed, [{myapp, 5000, [, {, }]}]},
   {sync_nodes_mandatory, [, ]},
   {sync_nodes_timeout, 5000}
  ]
}
].
 
Now I want to  add one more node to  the system  .How can I do this using erlang's distributed applicaiton mechanism? Do I have to edit the config file on all 3 nodes to add the 4th node and restart all of them? 
 
Thanks .
------------------------------------
devdoer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20080909/f906ca73/attachment.html>


More information about the erlang-questions mailing list