From 7e253776d59b7a457df8d9ffaf2eedc985b956e2 Mon Sep 17 00:00:00 2001 From: Yaroslav Rogov Date: Mon, 31 May 2021 16:19:43 +0300 Subject: [PATCH] refactor: Update cluster join method Co-authored-by: Sergey Yelin --- poststart.d/99-join-cluster.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/poststart.d/99-join-cluster.sh b/poststart.d/99-join-cluster.sh index 7f67f22..25c5e65 100644 --- a/poststart.d/99-join-cluster.sh +++ b/poststart.d/99-join-cluster.sh @@ -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