summaryrefslogtreecommitdiff
path: root/utils/create-cluster
diff options
context:
space:
mode:
authorartix <artix2@gmail.com>2018-05-07 15:56:12 +0200
committerartix <artix2@gmail.com>2018-05-07 15:56:15 +0200
commit35b3a8e1ee145d40a51c586ca937bc86a4230f41 (patch)
tree5b8ef7dedc572c3a3dfa60b6854e408c3c225787 /utils/create-cluster
parent26b3a0eb21ac6b4beb96825011fa22427c288e8c (diff)
downloadredis-35b3a8e1ee145d40a51c586ca937bc86a4230f41.tar.gz
- Updated create-cluster with redis-cli
- Updated README
Diffstat (limited to 'utils/create-cluster')
-rw-r--r--utils/create-cluster/README2
-rwxr-xr-xutils/create-cluster/create-cluster4
2 files changed, 3 insertions, 3 deletions
diff --git a/utils/create-cluster/README b/utils/create-cluster/README
index f2a89839b..e682f6dc9 100644
--- a/utils/create-cluster/README
+++ b/utils/create-cluster/README
@@ -15,7 +15,7 @@ To create a cluster, follow these steps:
1. Edit create-cluster and change the start / end port, depending on the
number of instances you want to create.
2. Use "./create-cluster start" in order to run the instances.
-3. Use "./create-cluster create" in order to execute redis-trib create, so that
+3. Use "./create-cluster create" in order to execute redis-cli --cluster create, so that
an actual Redis cluster will be created.
4. Now you are ready to play with the cluster. AOF files and logs for each instances are created in the current directory.
diff --git a/utils/create-cluster/create-cluster b/utils/create-cluster/create-cluster
index d821683f6..468f924a4 100755
--- a/utils/create-cluster/create-cluster
+++ b/utils/create-cluster/create-cluster
@@ -34,7 +34,7 @@ then
PORT=$((PORT+1))
HOSTS="$HOSTS 127.0.0.1:$PORT"
done
- ../../src/redis-trib.rb create --replicas $REPLICAS $HOSTS
+ ../../src/redis-cli --cluster create $HOSTS --cluster-replicas $REPLICAS
exit 0
fi
@@ -94,7 +94,7 @@ fi
echo "Usage: $0 [start|create|stop|watch|tail|clean]"
echo "start -- Launch Redis Cluster instances."
-echo "create -- Create a cluster using redis-trib create."
+echo "create -- Create a cluster using redis-cli --cluster create."
echo "stop -- Stop Redis Cluster instances."
echo "watch -- Show CLUSTER NODES output (first 30 lines) of first node."
echo "tail <id> -- Run tail -f of instance at base port + ID."