<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">The only solution seems to be
<a class="moz-txt-link-freetext" href="https://github.com/uwiger/unsplit">https://github.com/uwiger/unsplit</a> usage where you manually resolve
any conflicts. Someone may already have integration with ejabberd
that is available, but the problem of which side of the nodesplit
to take should be error-prone, difficult, and sometimes impossible
(depending on the data stored). I think it is simpler to just
hookup ejabberd to postgres or mysql instead of the mnesia usage.
There still remains mnesia usage internally, but I don't think the
internal mnesia usage that doesn't go to postgres or mysql is
distributed (would be good to check).<br>
<br>
On 05/03/2013 08:32 AM, Daniel Dormont wrote:<br>
</div>
<blockquote
cite="mid:CAGYOVV34iod2MtYY4ueiFPppzZmbj5D6CUobksuEgqdnYEPwBw@mail.gmail.com"
type="cite">
<meta http-equiv="Context-Type" content="text/html;
charset=ISO-8859-1">
<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>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
erlang-questions mailing list
<a class="moz-txt-link-abbreviated" href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a>
<a class="moz-txt-link-freetext" href="http://erlang.org/mailman/listinfo/erlang-questions">http://erlang.org/mailman/listinfo/erlang-questions</a>
</pre>
</blockquote>
<br>
</body>
</html>