Is there a way to do local writes and global reads (without replication) using mnesia. For example: node A writes to its local database and node B reads from the node database. Node B has no proprietary data other than schema information stored locally.
According to the documentation, {local_content, true} seems to be what I need to use, but I unsuccessfully tried to get node B to read node data.
The configuration of my schema and table looks like this:
On node A @ ip1:
net_adm:ping(' nodeB@ip2 '). rd(user, {name, nick}). mnesia:create_schema([node()|nodes()]). mnesia:start(). mnesia:create_table(user, [ {local_content, true}, {disc_copies, [node()]}, {attributes,record_info(fields, user) }]). %% insert data and list rows on nodeA %% WORKS
On the node B @ ip2:
mnesia:start(). %% code to list rows from user table on nodeA %% throws an ERROR saying table does not exist.
Incorrect configuration or can it be done in any other way?
erlang mnesia
Abhijith
source share