Skip to content

ruanpienaar/mnesia_cluster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mnesia Cluster

This repo serves as a exploratory exercise with mnesia and a cluster of nodes.

Dockerfile and other scripts

mnesia_docker_cluster

Docker image / Docker compose ( 3 node cluster )

https://hub.docker.com/r/ruanpienaar/mnesia_docker_cluster_example/

Running locally

$ export NODENAME=node
$ export COOKIE=cookie
$ export MNESIA_DIR=Mnesia
$ export RELX_REPLACE_OS_VARS=true
$ make
$ ./_build/default/rel/mnesia_cluster/bin/mnesia_cluster console

Cluster nodes are added to kernel's sync_nodes_mandatory property. mnesia_cluster then runs the mnesia cluster setup on the list of sync_nodes_mandatory nodes.

A list of tables can be specified in config/sys.config, when mnesia_cluster is used as a DEP.

About

An experiment to get mnesia and docker to play along..

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published