ConnectingNodesByHand
From Erlang Community
If you wanted a simple 3 node cluster you could do the following by hand.
- On linux:
- Install erlang somewhere, say /usr/local/otp_NNN
- mkdir NodeStorage; mkdir NodeStorage/ANode; mkdir NodeStorage/BNode
- export ERL_TOP=(erlang install dir, in bash) or setenv ( csh )
- cd $ERL_TOP
- create a shell script (ANodeStart.sh) that contains the following:
\# \#!/bin/bash \# Start Node A HOSTNAME=`hostname` HDNAME=`host ${HOSTNAME} | cut -d ' ' -f 4` erl -name ANode@${HDNAME} -setcookie ACookie -mnesia dir '"~/NodeStorage/NodeA"'
5) cp ANode.sh BNode.sh 6) sed -e 's/ANode/BNode/g' ANode.sh > BNode.sh 7)

Digg It
Del.icio.us
Reddit
Facebook
Stumble Upon
Technorati

