<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Adding to this: doesn't it mean that the name and full host of the node need to be known before you can initialize your db, hence a release can only be specific for a specific full node name?<br><br><br></div><div><br>On 10/feb/2015, at 21:57, Martin Karlsson <<a href="mailto:martink@securemedia.co.nz">martink@securemedia.co.nz</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr">Hi Jesper,<div><br></div><div>This is an interesting approach. I've gone the " leads to misery" path :) I.e when a node starts up if it doesn't have a schema it waits for an initialisation command from the use and it can either initialise itself as the first node in the cluster or join another node. I've never been fully happy with this.</div><div><br></div><div>How would your approach work with multiple nodes? I can understand starting the first node using a pre-initialised schema but then the other node starts up you want it to be able to join the mnesia cluster in a nice way and not start and initialise its own schema.</div><div><br></div><div>An alternative I've also seen is having an mnesia "install" phase and use the erlang boot scripts to kick the install process off.</div><div><br></div><div>Cheers,</div><div>Martin</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 11 February 2015 at 02:20, Jesper Louis Andersen <span dir="ltr"><<a href="mailto:jesper.louis.andersen@gmail.com" target="_blank">jesper.louis.andersen@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 dir="ltr"><div class="gmail_extra"><span class=""><br><div class="gmail_quote">On Sun, Feb 8, 2015 at 7:25 PM, Roberto Ostinelli <span dir="ltr"><<a href="mailto:roberto.ostinelli@widetag.com" target="_blank">roberto.ostinelli@widetag.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Can you please expand on this? Do you mean that when you boot a system you reset the db?</blockquote></div><br></span>The DB is never reset. It is just that on the first deploy, there is a valid DB the system can use to start up and get to work. Apart from having the right schema, it can also be pre-populated with important data the systems needs in order to function correctly.</div><span class="HOEnZb"><font color="#888888"><div class="gmail_extra"><br></div><div class="gmail_extra"><br><br clear="all"><div><br></div>-- <br><div>J.</div>
</div></font></span></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><br></div>
</div></blockquote></body></html>