<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; ">
<div> Yes, started but not loaded; I.e., running application:start(app name) again leads to an error, already started, but application:which_applications() does not list it. Same setup as I have when failover works by explicitly killing the initial node.</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>Yogish Baliga <<a href="mailto:yogishb@yahoo.com">yogishb@yahoo.com</a>><br>
<span style="font-weight:bold">Date: </span>Wednesday, September 25, 2013 3:23 PM<br>
<span style="font-weight:bold">To: </span>Chris Phillips <<a href="mailto:christopher.phillips@turner.com">christopher.phillips@turner.com</a>><br>
<span style="font-weight:bold">Cc: </span>Yogish Baliga <<a href="mailto:yogishb@yahoo.com">yogishb@yahoo.com</a>>, "<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a>" <<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [erlang-questions] Distributed apps when application terminates<br>
</div>
<div><br>
</div>
<div>
<div>
<div dir="ltr">
<div>
<div>May be dumb question, but worth asking. <br>
<br>
</div>
Is application started on the fail over node?<br>
<br>
</div>
-- baliga<br>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Wed, Sep 25, 2013 at 12:11 PM, Phillips, Christopher <span dir="ltr">
<<a href="mailto:Christopher.Phillips@turner.com" target="_blank">Christopher.Phillips@turner.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="font-size:14px;font-family:Calibri,sans-serif;word-wrap:break-word">
<div> The node appears to have gone down; if I'm attached to it I get dropped back to the shell. If I check for running Erlang processes (ps aux | grep beam) I see nothing. The other node received a 'nodedown' message. That's what's confusing me; if it was
still up I'd understand, and in the past when just stopping the application manually I accepted it not failing over. This is a bit different.</div>
<div><br>
</div>
<span>
<div style="border-right:medium none;padding-right:0in;padding-left:0in;padding-top:3pt;text-align:left;font-size:11pt;border-bottom:medium none;font-family:Calibri;border-top:#b5c4df 1pt solid;padding-bottom:0in;border-left:medium none">
<span style="font-weight:bold">From: </span>Yogish Baliga <<a href="mailto:yogishb@yahoo.com" target="_blank">yogishb@yahoo.com</a>><br>
<span style="font-weight:bold">Date: </span>Wednesday, September 25, 2013 2:57 PM<br>
<span style="font-weight:bold">To: </span>Chris Phillips <<a href="mailto:christopher.phillips@turner.com" target="_blank">christopher.phillips@turner.com</a>><br>
<span style="font-weight:bold">Cc: </span>"<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a>" <<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [erlang-questions] Distributed apps when application terminates<br>
</div>
<div>
<div class="h5">
<div><br>
</div>
<div>
<div>
<div dir="ltr">
<div>
<div>According to distributed app documentation:<br>
<br>
If the node where the application is running goes down, the application is restarted (after the specified timeout) at the first node, specified by the
<span>distributed</span> configuration parameter, which is up and running. This is called a
<strong>failover</strong>.<br>
<br>
</div>
In your case, your node did not go down but supervisor is stopped. I did a test in the past of the application fail over by disabling ethernet adapater on the master node.<br>
<br>
</div>
-- baliga<br>
<br>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Wed, Sep 25, 2013 at 11:28 AM, Phillips, Christopher <span dir="ltr">
<<a href="mailto:Christopher.Phillips@turner.com" target="_blank">Christopher.Phillips@turner.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="font-size:14px;font-family:Calibri,sans-serif;word-wrap:break-word">
<div>I have a release built around a distributed application. </div>
<div><br>
</div>
<div>If I spin two nodes up, things are configured properly such that if I attach and q() out of the node the application is actively running on, failover occurs, the application starts up on the other node.</div>
<div><br>
</div>
<div>What I'm finding is that in the same situation, if I kill the top level supervisor (either by directly sending it an exit message, or having a child fail enough times to pass the max restart threshold), I _don't_ fail over. I do, however, receive a node
down message on the other node. I'm wondering if this is intentional, a bug, or if I'm doing something wrong.</div>
</div>
<br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
</span></div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</span>
</body>
</html>