forked from rzezeski/rebar_riak_core
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from russelldb/rdb_N_nodes
Update for multi-node devrel (as per riak)
- Loading branch information
Showing
9 changed files
with
111 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
%% -*- mode: erlang;erlang-indent-level: 4;indent-tabs-mode: nil -*- | ||
%% ex: ft=erlang ts=4 sw=4 et | ||
|
||
%% | ||
%% etc/app.config | ||
%% | ||
{ring_state_dir, "data/ring"}. | ||
{web_ip, "127.0.0.1"}. | ||
{web_port, @WEBPORT@}. | ||
{handoff_port, @HANDOFFPORT@}. | ||
|
||
%% | ||
%% etc/vm.args | ||
%% | ||
{node, "@NODE@"}. | ||
{cookie, "{{appid}}"}. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#! /bin/sh | ||
# | ||
# gen_dev dev4 vars.src vars | ||
# | ||
# Generate an overlay config for devNNN from vars.src and write to vars | ||
# | ||
|
||
NAME=$1 | ||
TEMPLATE=$2 | ||
VARFILE=$3 | ||
|
||
## Allocate 10 ports per node | ||
## .7 - http | ||
|
||
NUMBER=${NAME##dev} | ||
BASE=$((10000 + 10 * $NUMBER)) | ||
WEBPORT=$(($BASE + 8)) | ||
HANDOFFPORT=$(($BASE + 9)) | ||
NODENAME="{{appid}}$NUMBER@127.0.0.1" | ||
|
||
echo "Generating $NAME - node='$NODENAME' http=$WEBPORT handoff=$HANDOFFPORT" | ||
sed -e "s/@NODE@/$NODENAME/" \ | ||
-e "s/@WEBPORT@/$WEBPORT/" \ | ||
-e "s/@HANDOFFPORT@/$HANDOFFPORT/" < $TEMPLATE > $VARFILE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters