You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+38-10Lines changed: 38 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,13 +56,13 @@ Now shut it down:
56
56
devrel
57
57
----------
58
58
59
-
Above we showed how to start a single node, but this isn't typically how other Riak Core based applications like Riak are tested. Instead, there is something called a _devrel_ that allows one to easily set up a local 3-node cluster.
59
+
Above we showed how to start a single node, but this isn't typically how other Riak Core based applications like Riak are tested. Instead, there is something called a _devrel_ that allows one to easily set up a local `N`-node cluster. By defauly `N` is 4. You can change this by either editing the `Makefile` and changing `DEVNODES` to your prefered `N`, or by setting the variable `DEVNODES` before running the commands below.
60
60
61
61
Build the dev-nodes:
62
62
63
63
make devrel
64
64
65
-
This did create 3 separate instances under the `dev/` dir; check it out:
65
+
This did create 4 separate instances under the `dev/` dir; check it out:
66
66
67
67
ls dev
68
68
@@ -74,19 +74,19 @@ Verify that the nodes are up and running:
74
74
75
75
for d in dev/dev*; do $d/bin/firstapp ping; done
76
76
77
-
You should see three`pong` replies. At this point it is worth saying that you have three**INDIVIDUAL** firstapp nodes running. They are **NOT** aware of each other yet. In order to form a cluster you have to _join_ the nodes. That has to be done only once. If a node, or the entire cluster, goes down it will remember the nodes it was connected to.
77
+
You should see four`pong` replies. At this point it is worth saying that you have four**INDIVIDUAL** firstapp nodes running. They are **NOT** aware of each other yet. In order to form a cluster you have to _join_ the nodes. That has to be done only once. If a node, or the entire cluster, goes down it will remember the nodes it was connected to.
78
78
79
-
for d in dev/dev{2,3}; do $d/bin/firstapp-admin join [email protected]; done
79
+
for d in dev/dev{2,3,4}; do $d/bin/firstapp-admin join [email protected]; done
80
80
81
81
Finally, to make sure they really all agree on the shape of the cluster you can ask if the _ring_ is "ready."
0 commit comments