Skip to content
Snippets Groups Projects
Commit f8d56200 authored by Sören Henning's avatar Sören Henning
Browse files

Fix run script parameter passing

parent 7441bd04
No related branches found
No related tags found
No related merge requests found
...@@ -3,7 +3,11 @@ ...@@ -3,7 +3,11 @@
UC=$1 UC=$1
IFS=', ' read -r -a DIM_VALUES <<< "$2" IFS=', ' read -r -a DIM_VALUES <<< "$2"
IFS=', ' read -r -a REPLICAS <<< "$3" 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 # Get and increment counter
EXP_ID=$(cat exp_counter.txt) EXP_ID=$(cat exp_counter.txt)
...@@ -27,7 +31,7 @@ do ...@@ -27,7 +31,7 @@ do
do do
SUBEXPERIMENT_COUNTER=$((SUBEXPERIMENT_COUNTER+1)) SUBEXPERIMENT_COUNTER=$((SUBEXPERIMENT_COUNTER+1))
echo "Run subexperiment $SUBEXPERIMENT_COUNTER/$SUBEXPERIMENTS with config: $DIM_VALUE $REPLICA" 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 sleep 10s
done done
done done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment