From f8d56200b5f9b6f71a99c23e3b0dc2b717b4eacc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Henning?= <post@soeren-henning.de> Date: Thu, 7 May 2020 19:58:26 +0200 Subject: [PATCH] Fix run script parameter passing --- execution/run_loop.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/execution/run_loop.sh b/execution/run_loop.sh index 04664a7cb..5275cd4e2 100755 --- a/execution/run_loop.sh +++ b/execution/run_loop.sh @@ -3,7 +3,11 @@ UC=$1 IFS=', ' read -r -a DIM_VALUES <<< "$2" IFS=', ' read -r -a REPLICAS <<< "$3" -PARTITIONS=$4 +PARTITIONS=${4:-40} +CPU_LIMIT=${5:-1000m} +MEMORY_LIMIT=${6:-4Gi} +KAFKA_STREAMS_COMMIT_INTERVAL_MS=${7:-100} +EXECUTION_MINUTES=${8:-5} # Get and increment counter EXP_ID=$(cat exp_counter.txt) @@ -27,7 +31,7 @@ do do SUBEXPERIMENT_COUNTER=$((SUBEXPERIMENT_COUNTER+1)) echo "Run subexperiment $SUBEXPERIMENT_COUNTER/$SUBEXPERIMENTS with config: $DIM_VALUE $REPLICA" - ./run_uc$UC-new.sh $EXP_ID $DIM_VALUE $REPLICA $PARTITIONS + ./run_uc$UC-new.sh $EXP_ID $DIM_VALUE $REPLICA $PARTITIONS $CPU_LIMIT $MEMORY_LIMIT $KAFKA_STREAMS_COMMIT_INTERVAL_MS $EXECUTION_MINUTES sleep 10s done done -- GitLab