<div dir="ltr">Hi David, <div style>The other way beside log file, is to subscribe to mnesia system events. </div><div style><a href="http://www.erlang.org/doc/apps/mnesia/Mnesia_chap5.html#id76675">http://www.erlang.org/doc/apps/mnesia/Mnesia_chap5.html#id76675</a><br>
</div><div style><br></div><div style>In case of an inconsistent database (usually happens after a split), your process will receive the event (message)</div><div style><br></div><div style>{inconsistent_database, Context, Node}</div>
<div style><br></div><div style>Mnesia won't do any automatic healing, you will have to decide what to do. (some options are offered in the documentation)</div><div style><br></div><div style>As pointed earlier by Motiejus, unsplit is a framework (written by Ulf Wiger) to help resolving this kind of situations.</div>
<div style><br></div></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr">Best Regards,<br>- Ahmed Omar<div><span style="color:rgb(51,51,51);font-family:proxima-nova-1,proxima-nova-2,Tahoma,Helvetica,Verdana,sans-serif;font-size:14px;line-height:18px"><a href="http://about.me/spawn.think/" target="_blank">http://about.me/spawn.think/</a></span></div>
</div></div>
<br><br><div class="gmail_quote">On Tue, Sep 10, 2013 at 9:23 PM, Motiejus Jakštys <span dir="ltr"><<a href="mailto:desired.mta@gmail.com" target="_blank">desired.mta@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Tue, Sep 10, 2013 at 7:28 PM, David Chamard<br>
<<a href="mailto:david.chamard@ubisoft.com">david.chamard@ubisoft.com</a>> wrote:<br>
> Hi Everyone,<br>
><br>
> I was wondering if there is the way to detect a network split of mnesia cluster beside the log file?<br>
> The goal would be to monitor the state of the replication and status of the mnesia cluster.<br>
> I tried with mnesia info but it does not seem(Or I do not understand the stats properly) what is needed to see if there is a network split of if a node is behind.<br>
<br>
</div>The answer is somewhere here (this might as well be exactly what you<br>
need): <a href="https://github.com/uwiger/unsplit/" target="_blank">https://github.com/uwiger/unsplit/</a><br>
<span class="HOEnZb"><font color="#888888"><br>
Motiejus<br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<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>
</div></div></blockquote></div><br></div>