<div dir="ltr">hi ulf ,<div>thanks.</div><div>the takeover is working okay now !!! .</div><div>config a is this </div><div><br></div><div><div>[{kernel,</div><div> [{distributed, [{m8ball,</div><div> 5000,</div><div> [a@ZION, {b@ZION, c@ZION}]}]},</div><div> {sync_nodes_mandatory, [b@ZION, c@ZION]},</div><div> {sync_nodes_timeout, 30000}</div><div> ]</div><div> }</div><div>].</div></div><div><br></div><div>i start each node with </div><div>bin\werl.exe -sname c -config C:\wamp\www\erlang\proj\m8ball\apps\m8ball_1_0_0\config\c.config<br></div><div><br></div><div>there are 3 nodes .their conf files are similar with sync_nodes_mandatory being slightly different .</div><div><br></div><div>a small question .</div><div>the first round of failover and takeover seems to work fine .</div><div>but after the first round (start node a,b,c . kill a b does failover .kill b c does failover . restart a,b a does takeover from c killing c application on c .i restart shell on c )</div><div><br></div><div><b> after the first round when i try to do a failover onto b by killing a it doesnt work .</b></div><div>was wondering how come since the first round of failover take over worked fine .</div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 23, 2015 at 6:35 AM, Ulf Wiger <span dir="ltr"><<a href="mailto:ulf@feuerlabs.com" target="_blank">ulf@feuerlabs.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><span class=""><br><div><blockquote type="cite"><div>On 23 Jan 2015, at 03:44, Nuku Ameyibor <<a href="mailto:nayibor@gmail.com" target="_blank">nayibor@gmail.com</a>> wrote:</div><br><div><div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">=INFO REPORT==== 23-Jan-2015::02:20:57 ===</div><div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">global: Name conflict terminating {m8ball_server,<2910.62.0>}</div></div></blockquote><br></div></span><div>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.</div><div><br></div><div>You can for example use the ‘distributed’ option, described here:</div><div><a href="http://www.erlang.org/doc/apps/kernel/application.html#load-1" target="_blank">http://www.erlang.org/doc/apps/kernel/application.html#load-1</a></div><div><br></div><div>and here:</div><div><br></div><div><a href="http://www.erlang.org/doc/man/kernel_app.html" target="_blank">http://www.erlang.org/doc/man/kernel_app.html</a></div><div><br></div><div>BR,</div><div>Ulf W</div><br><div>
<span style="border-collapse:separate;border-spacing:0px"><div><div>Ulf Wiger, Co-founder & Developer Advocate, Feuerlabs Inc.</div><div><a href="http://feuerlabs.com" target="_blank">http://feuerlabs.com</a></div></div><div><br></div></span><br>
</div>
<br></div></blockquote></div><br></div>