Reputation: 35
when I distribute my application across a number of nodes and create processes in each, processes are separate to all nodes they are created on.
Is this the case with distribution? are processes not replicated across nodes?
If I have a Long running process representing a real life machine, say I have to init this process at start up, what happens when the system goes down do I have to re initialise it?
Upvotes: 0
Views: 50
Reputation: 7914
When spawning a process in Erlang it is up to you to decide, possibly implicitly, where it is spawned. The default choice is the node of the process that executes the spawn
call.
There is no 'replication', unless you explicitly add it.
Upvotes: 2