[erlang-questions] unregistering a process during takeover

Ulf Wiger ulf@REDACTED
Sat Jan 24 15:00:10 CET 2015


> On 24 Jan 2015, at 13:56, Nuku Ameyibor <nayibor@REDACTED> wrote:
> 
>   but how do errors during restarts affect the distribution  mechanism .
>   for instance how do global name clashes affect the distribution mechanism .

When you start applications from the shell using application:start(App), the default restart type is ‘temprorary’, which means that if the application start fails, only the application is terminated. If the application is started with application:start(App, permanent), the whole node is terminated if the application crashes.

The application start, in its turn, fails if the processes started synchonously from the start function fail during startup. The global name registration usually happens during application startup.

Applications started from a boot script are automatically started as ‘permanent’.

BR,
Ulf W

Ulf Wiger, Co-founder & Developer Advocate, Feuerlabs Inc.
http://feuerlabs.com



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150124/2227a642/attachment.htm>


More information about the erlang-questions mailing list