<p dir="ltr">You seem to know what to do, restart one of the nodes. Or at least restart mnesia. To restart a node programmatically you may use init:restart/0.<br>
</p>
<div class="gmail_quote">On May 3, 2013 9:02 PM, "Daniel Dormont" <<a href="mailto:dan@greywallsoftware.com">dan@greywallsoftware.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi Erlangers,<div><br></div><div>I'm running ejabberd with a two-node cluster in my production environment. Today that system encountered a netsplit. It was properly recorded and logged. But I need to work on some way to automate a solution for this. I'm aware that the problem can't be solved in general, but there are two mitigating factors in my case:</div>

<div><br></div><div>1 - Almost all of my tables are RAM-only.</div><div>2 - None of the data are truly critical for me. That is, loss of some portion of the data isn't critical because my application can recover.</div>

<div><br></div><div>So in this case, I just picked a node, restarted ejabberd on it, and all is well. But what I'd like to do is write some actual Erlang code that can subscribe to the Mnesia   partitioned network event and do something about it. What are my options there?</div>

<div><br></div><div>thanks,</div><div>Dan</div></div>
<br>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">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>