[erlang-questions] Mnesia schema deployment best practice
Mon Nov 17 13:03:06 CET 2008
> I am getting to the point where I need to automate the release of all the
> components in my app.
> Obviously the Mnesia schema will only need to be executed the first time
> the app is launched and not every time the app is started there after.
> What is the standard practice for releasing an Mnesia schema and seeding
> the DB as a one of at initial release?
"It depends" is the answer. I'm not sure of standard practice, but we
basically include it as part of the installation procedure for a service. If
it is part of a network of mnesia nodes, you could create one by hand, and
then make other nodes join the schema as they come up. I'm personally not
comfortable with a node creating a schema automatically when it can't find
one, because there can be all sorts of operational reasons for a schema not
existing. If you are talking about long lived nodes, it is a good idea to
create the schema manually, before you run the node at full steam.
You'll need the following functions to make a new node join an existing
The User Guide for mnesia details the procedure.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions