[erlang-questions] unregistering a process during takeover

Ulf Wiger ulf@REDACTED
Fri Jan 23 07:35:27 CET 2015


> On 23 Jan 2015, at 03:44, Nuku Ameyibor <nayibor@REDACTED> wrote:
> 
> =INFO REPORT==== 23-Jan-2015::02:20:57 ===
> global: Name conflict terminating {m8ball_server,<2910.62.0>}

This suggests that you’re connecting the nodes *after* starting your applications, so that the application processes have time to globally register themselves first. Global detects the name conflict when trying to merge the registries of the two nodes.

You can for example use the ‘distributed’ option, described here:
http://www.erlang.org/doc/apps/kernel/application.html#load-1 <http://www.erlang.org/doc/apps/kernel/application.html#load-1>

and here:

http://www.erlang.org/doc/man/kernel_app.html <http://www.erlang.org/doc/man/kernel_app.html>

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/20150123/450c2cd9/attachment.htm>


More information about the erlang-questions mailing list