Mnesia, disconnections and reconnections

Samuel Tardieu sam@REDACTED
Wed Feb 18 20:55:51 CET 2004


Hi.

I have implemented a greylist filter[1] for Postfix in Erlang using
Mnesia in order to check whether this efficiently reduces spam or
not. As the system works best if all the MXs use the same database, I
use a distributed Mnesia database with all nodes having disc_copies of
every table (3 nodes).

However, the nodes sometime get disconnected from each other because
of network outages. As the node don't restart (they weren't shutdown),
they all use different versions of the tables.

How can I designate one of the nodes to be the master one so that in
case of a reconnection the content of the tables will be reloaded from
this node? Or is there a better way to do this?

  Sam

Notes: 
[1] http://www.greylisting.org/
-- 
Samuel Tardieu -- sam@REDACTED -- http://www.rfc1149.net/sam




More information about the erlang-questions mailing list