Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
dc46f6f0
Commit
dc46f6f0
authored
Aug 05, 2020
by
Frank Meier
Committed by
Oran Agra
Sep 01, 2020
Browse files
add force option to 'create-cluster create' script call (#7612)
(cherry picked from commit
3244fae7
)
parent
916b215f
Changes
1
Show whitespace changes
Inline
Side-by-side
utils/create-cluster/create-cluster
View file @
dc46f6f0
...
...
@@ -38,7 +38,11 @@ then
PORT
=
$((
PORT+1
))
HOSTS
=
"
$HOSTS
$CLUSTER_HOST
:
$PORT
"
done
$BIN_PATH
/redis-cli
--cluster
create
$HOSTS
--cluster-replicas
$REPLICAS
OPT_ARG
=
""
if
[
"
$2
"
==
"-f"
]
;
then
OPT_ARG
=
"--cluster-yes"
fi
$BIN_PATH
/redis-cli
--cluster
create
$HOSTS
--cluster-replicas
$REPLICAS
$OPT_ARG
exit
0
fi
...
...
@@ -104,7 +108,7 @@ fi
echo
"Usage:
$0
[start|create|stop|watch|tail|clean|call]"
echo
"start -- Launch Redis Cluster instances."
echo
"create
-- Create a cluster using redis-cli --cluster create."
echo
"create
[-f]
-- 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."
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment