Skip to content

Commit

Permalink
More fixes for running mlaunch with the right params
Browse files Browse the repository at this point in the history
  • Loading branch information
autarch committed Nov 11, 2022
1 parent f7fcf53 commit b99c0d8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1416,7 +1416,7 @@ tasks:
- func: "run server with mlaunch"
vars:
USE_TLS: "true"
MLAUNCH_SHARDED_CLUTER: "true"
MLAUNCH_CLUSTER_TYPE: "sharded"
- func: "run make target"
vars:
target: build
Expand Down
8 changes: 4 additions & 4 deletions scripts/run_mlaunch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ set -e

echo "starting sharded cluster"

MLAUNCH_ARGS="--port 33333"
MLAUNCH_ARGS="--port 33333 --setParameter enableTestCommands=1"

if [ "$USE_SSL" = "true" ]; then
MLAUNCH_ARGS="$MLAUNCH_ARGS --sslMode requireSSL --sslCAFile common/db/testdata/ca-ia.pem --sslPEMKeyFile common/db/testdata/test-server.pem --sslClientCertificate common/db/testdata/test-client.pem --sslAllowInvalidCertificates"
Expand All @@ -21,17 +21,17 @@ if [ "$AWS_AUTH" = "true" ]; then
fi

if [ "$USE_AUTH" = "true" ]; then
MLAUNCH_ARGS="$MLAUNCH_ARGS --auth"
MLAUNCH_ARGS="$MLAUNCH_ARGS --auth --dbpath mongodb/db_files"
fi

if [ -n "$STORAGE_ENGINE" ]; then
MLAUNCH_ARGS="$MLAUNCH_ARGS --storageEngine $STORAGE_ENGINE"
fi

CLUSTER_TYPE="--replicaset --nodes 3"
if [ -n "$MLAUNCH_SHARDED_CLUSTER" ]; then
if [ "$MLAUNCH_CLUSTER_TYPE" = "sharded" ]; then
CLUSTER_TYPE="$CLUSTER_TYPE --sharded 3"
elif [ -n "$MLAUNCH_SINGLE_NODE" ]; then
elif [ "$MLAUNCH_CLUSTER_TYPE" = "single" ]; then
CLUSTER_TYPE="--single"
fi

Expand Down

0 comments on commit b99c0d8

Please sign in to comment.