From 9aac091943ff09e9ce80f1e2121cef800a2fbb1b Mon Sep 17 00:00:00 2001 From: Adam Kocoloski Date: Fri, 27 Aug 2010 13:21:59 -0400 Subject: instructions on starting up the dev cluster --- Makefile | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 8939077e..892cccc7 100644 --- a/Makefile +++ b/Makefile @@ -32,9 +32,20 @@ install: dist dev: compile @rm -rf rel/dev1 rel/dev2 rel/dev3 - @echo "==> Building development node #1" + @echo "==> Building development node #1 (ports 15984/15986)" @./rebar generate target_dir=dev1 overlay_vars=dev1.config - @echo "==> Building development node #2" + @echo "==> Building development node #2 (ports 25984/25986)" @./rebar generate target_dir=dev2 overlay_vars=dev2.config - @echo "==> Building development node #3" + @echo "==> Building development node #3 (ports 35984/35986)" @./rebar generate target_dir=dev3 overlay_vars=dev3.config + @echo "\n\ +Development nodes are built, and can be started using the dbcore scripts in\n\ +./rel/dev[123]/bin. Once the nodes are started, they must be joined together\n\ +by editing the local nodes DB. For example, executing\n\ +\n\ + curl localhost:15986/nodes/dev2@127.0.0.1 -X PUT -d '{}'\n\ + curl localhost:15986/nodes/dev3@127.0.0.1 -X PUT -d '{}'\n\ +\n\ +will cause node 1 to immediately connect to nodes 2 and 3 and form a cluster.\n\ +The content of the nodes database is continuously replicated throughout the\n\ +cluster, so this is a one-time operation.\n" -- cgit v1.2.3