Automatic node discovery

Ulf Wiger (AL/EAB) ulf.wiger@REDACTED
Mon May 2 14:03:27 CEST 2005

One way to achieve this, if you're going to use mnesia
anyway, is to have all nodes use this in their sys.config:

[{mnesia, [{extra_db_nodes, MasterMnesiaNodes}]}].

where MasterMnesiaNodes are the (perhaps 2 or 3) nodes that
have the disk-based database schema. All other nodes become
diskless mnesia nodes, and can access the tables defined in 
the database (no matter where the physical tables reside).

As a bonus, all nodes become aware of each other.

The diskless nodes do not have to be known to mnesia
in advance.


> -----Original Message-----
> From: owner-erlang-questions@REDACTED
> [mailto:owner-erlang-questions@REDACTED]On Behalf Of Joel Reymont
> Sent: den 2 maj 2005 13:48
> To: erlq@REDACTED
> Cc: Erlang Users' List
> Subject: Re: Automatic node discovery
> > erlq@REDACTED wrote:
> >Why not have a service that the nodes register with when 
> they come up?
> >That way you could have servers anywhere and not worry about 
> whether the
> >broadcast packets are being blocked by some 
> >router/switch/iptables/netmask setting.
> How would this work in practice? That is how would a new box 
> brought up
> on the network know what IP address the registration service is at?
> I would like to treat my poker server as a home appliace, a web-
> configurable router of sorts. It would seem that for the registration
> idea to work I would need to ask the user to enter the IP 
> address of the
> box where the registration service is running. Correct me if 
> I'm wrong.
>     Thanks, Joel
> -- 

More information about the erlang-questions mailing list