File tree 2 files changed +23
-2
lines changed 2 files changed +23
-2
lines changed Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ function help() {
5
5
echo " "
6
6
echo " OPTIONS:"
7
7
echo " -a/--nagents # agents (odd integer default: 1))"
8
- echo " -c/--ncoordinators # coordinators (odd integer default: 1))"
9
- echo " -d/--ndbservers # db servers (odd integer default: 2))"
8
+ echo " -c/--ncoordinators # coordinators (integer default: 1))"
9
+ echo " -d/--ndbservers # db servers (integer default: 2))"
10
10
echo " -t/--transport Protocol (ssl|tcp default: tcp)"
11
11
echo " -j/--jwt-secret JWT-Secret (string default: )"
12
12
echo " --log-level-agency Log level (agency) (string default: )"
@@ -20,6 +20,7 @@ function help() {
20
20
echo " -q/--source-dir ArangoDB source dir (default: .)"
21
21
echo " -B/--bin-dir ArangoDB binary dir (default: ./build)"
22
22
echo " -O/--ongoing-ports Ongoing ports (default: false)"
23
+ echo " --rr Run arangod with rr (true|false default: false)"
23
24
echo " "
24
25
echo " EXAMPLES:"
25
26
echo " $0 "
@@ -47,6 +48,7 @@ BUILD="./build"
47
48
JWT_SECRET=" "
48
49
PORT_OFFSET=0
49
50
SRC_DIR=" ."
51
+ USE_RR=" false"
50
52
51
53
parse_args (){
52
54
while [[ -n " $1 " ]]; do
@@ -119,6 +121,17 @@ while [[ -n "$1" ]]; do
119
121
ONGOING_PORTS=${2}
120
122
shift
121
123
;;
124
+ --rr)
125
+ USE_RR=${2}
126
+ if [ " $USE_RR " != " false" ] && [ " $USE_RR " != " true" ] ; then
127
+ echo ' Invalid parameter: ' \
128
+ ' `--rr` expects `true` or `false`, but got `' " $USE_RR " ' `' \
129
+ >&2
130
+ help
131
+ exit 1
132
+ fi
133
+ shift
134
+ ;;
122
135
* )
123
136
echo " Unknown parameter: ${1} " >&2
124
137
help
Original file line number Diff line number Diff line change @@ -174,6 +174,14 @@ start() {
174
174
CMD=$ARANGOD
175
175
fi
176
176
177
+ if [ " $USE_RR " = " true" ]; then
178
+ if ! which rr > /dev/null; then
179
+ echo ' rr binary not found in PATH!' >&2
180
+ exit 1
181
+ fi
182
+ CMD=" rr $CMD "
183
+ fi
184
+
177
185
TYPE=$1
178
186
PORT=$2
179
187
mkdir -p cluster/data$PORT cluster/apps$PORT
You can’t perform that action at this time.
0 commit comments