summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Kocoloski <adam@cloudant.com>2010-08-27 13:21:59 -0400
committerAdam Kocoloski <adam@cloudant.com>2010-08-27 13:22:25 -0400
commit9aac091943ff09e9ce80f1e2121cef800a2fbb1b (patch)
treea8d5d1f70c98dc6d144b1916dba31bcc11fa2864
parent9506c54a11510f0a8267269c9873674e826c2b01 (diff)
instructions on starting up the dev cluster
-rw-r--r--Makefile17
1 files changed, 14 insertions, 3 deletions
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"