homerjay
homerjay

Reputation: 35

Are processes not created on all nodes?

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

Answers (1)

aronisstav
aronisstav

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

Related Questions