I am looking into mnesia for the first time and I try to set it up in a cluster managed by libcluster.
I saw that you have to pass a list of cluster nodes to
mnesia:create_schema before starting mnesia with
start needs to be called on every node while
mnesia:create_table should only be called on one node. In all tutorials this is done by hand in the shell, but how do I do this automatically on startup in the right way? Currently my nodes are all running the exact same code, so all would create a schema and a table.
Hints are very welcome!