[erlang-questions] Multi-node setup: Adding nodes with mnesia and gproc?

Oliver Korpilla Oliver.Korpilla@REDACTED
Fri May 27 14:06:08 CEST 2016


We are trying to build a setup that will scale in an OpenStack cloud. Currently I as developer only know that the orchestrator will bring up additional instances as needed.

I restructured my application in such a way that I have a central node that does not scale and provides services to all other nodes. It comes up first. Then at least one worker node is started which only starts one kind of worker, but possibly a lot of them - on demand.

Me and my coworkers are new to the Erlang world and experimented a bit with gproc and mnesia when it comes to multi-node. The model we would be looking for is that a worker instance comes up and then gets access to all gproc global names and properties and also to the DB tables. So far our examples only worked if we connected the nodes first and then started gproc.

Can gproc and mnesia accomodate nodes that were added to the cluster after they were started? Is anything special necessary?

Thanks and regards,

More information about the erlang-questions mailing list