[erlang-questions] Dynamically add node to Distributed Application
Fri Sep 3 03:10:58 CEST 2010
You need to consider the two things,
1. Distribution from erlang that means you need to set up an erlang
cluster so that each node can ping each other in the cluster. Use
net_adm:ping(Node) to join a node into the cluster. You will get
notification when a node leaves the cluster from erlang distribution
if you monitor the nodes in cluster via erlang:monitor(Node,flag).
2. Distribution on your application, this is your application's logic
to handle the distribution. For example, how to dispatch the load to
the nodes in erlang cluster, how to handle the scenario where a node
joins/leaves the cluster from your application point of view.
On Thu, Sep 2, 2010 at 5:09 PM, Steve Strong <steve@REDACTED> wrote:
> I'm working on the design of an Erlang based system which will be hosted on
> EC2. Right now, a distributed application with a set of nodes looks like
> the right way forward, but one of my requirements is to be able to
> dynamically spin up new amazon instances and add them to the nodes within
> the distributed app.
> However, I can't see a way of adding nodes to a running distributed app - I
> am, however, a self-confessed Erlang noob, so any pointers would be much
More information about the erlang-questions