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
ecb742ac
Commit
ecb742ac
authored
Dec 03, 2019
by
antirez
Browse files
create-cluster script: allow additional options.
parent
7b5f4b17
Changes
1
Hide whitespace changes
Inline
Side-by-side
utils/create-cluster/create-cluster
View file @
ecb742ac
...
...
@@ -7,6 +7,7 @@ TIMEOUT=2000
NODES
=
6
REPLICAS
=
1
PROTECTED_MODE
=
yes
ADDITIONAL_OPTIONS
=
""
# You may want to put the above config parameters into config.sh in order to
# override the defaults without modifying this script.
...
...
@@ -24,7 +25,7 @@ then
while
[
$((
PORT < ENDPORT
))
!=
"0"
]
;
do
PORT
=
$((
PORT+1
))
echo
"Starting
$PORT
"
../../src/redis-server
--port
$PORT
--protected-mode
$PROTECTED_MODE
--cluster-enabled
yes
--cluster-config-file
nodes-
${
PORT
}
.conf
--cluster-node-timeout
$TIMEOUT
--appendonly
yes
--appendfilename
appendonly-
${
PORT
}
.aof
--dbfilename
dump-
${
PORT
}
.rdb
--logfile
${
PORT
}
.log
--daemonize
yes
../../src/redis-server
--port
$PORT
--protected-mode
$PROTECTED_MODE
--cluster-enabled
yes
--cluster-config-file
nodes-
${
PORT
}
.conf
--cluster-node-timeout
$TIMEOUT
--appendonly
yes
--appendfilename
appendonly-
${
PORT
}
.aof
--dbfilename
dump-
${
PORT
}
.rdb
--logfile
${
PORT
}
.log
--daemonize
yes
${
ADDITIONAL_OPTIONS
}
done
exit
0
fi
...
...
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