Skip to content

Commit

Permalink
refactor: Update cluster join method
Browse files Browse the repository at this point in the history
  • Loading branch information
jrogov committed May 31, 2021
1 parent 99e76df commit 038ffe6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion poststart.d/99-join-cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@
if [[ -z "$($RIAK_ADMIN cluster status | egrep $COORDINATOR_NODE_HOST)" && "$COORDINATOR_NODE_HOST" != "$HOST" ]]; then
# Not already in this cluster, so join
echo "Connecting to cluster coordinator $COORDINATOR_NODE"
curl -sSL $HOST:8098/admin/control/clusters/default/join/riak@$COORDINATOR_NODE_HOST
riak-admin cluster join $CLUSTER_NAME@$COORDINATOR_NODE
riak-admin cluster plan
riak-admin cluster commit
fi

0 comments on commit 038ffe6

Please sign in to comment.