Erlang mnesia disc-less node
Mnesia disc-less node is db node that only has ram_copies tables. The boot process as following:
- start node
- call mnesia:change_config(extra_db_nodes, [MasterNode]) to retrieve db schema from master
- invoke mnesia:add_table_copy(Tab, DiscLessNode, ram_copies) to set replication of tables (on slave or master node)
Alternative way is start node with -mnesia extra_db_nodes [MasterNode] when master node name can get before boot.
Continue reading →