-
Notifications
You must be signed in to change notification settings - Fork 0
/
execute-recalc.sh
executable file
·69 lines (48 loc) · 1.58 KB
/
execute-recalc.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#!/bin/bash
# (re)run service performance result evaluation
# execute setup
BASE_DIR=$(cd "$(dirname "$0")"; pwd)
if [ -f $BASE_DIR/config ] ; then
. $BASE_DIR/config
else
echo "Missing configuration"
exit 1
fi
. $BASE_DIR/common-functions.sh
## configuration
DATA_BASE_DIR="/data/reiner/jss-experiments/execution-2/"
checkExecutable "performance evaluation" "${EVAL_SERVICE_PERFORMANCE}"
## script
rm -f eval.log
touch eval.log
for I in `ls ${DATA_BASE_DIR}` ; do
export EXECUTION_DIR="${DATA_BASE_DIR}/$I"
echo "== $I =="
ITERATION=0
# repeat analysis
while [ "$ITERATION" != "200" ] ; do
echo ">> $I $ITERATION of 200"
KIEKER_BASE_DIR="${EXECUTION_DIR}/${ITERATION}/privacy-result"
EXECUTION_RESULTS_DIR="${EXECUTION_DIR}/${ITERATION}/performance-results"
mkdir -p ${EXECUTION_RESULTS_DIR}
KIEKER=`ls "${KIEKER_BASE_DIR}/"`
KIEKER_DIR="${KIEKER_BASE_DIR}/${KIEKER}"
# configure evaluation
cat << EOF > $BASE_DIR/eval.config
## The name of the Kieker instance.
kieker.monitoring.name=EXP
kieker.monitoring.hostname=
kieker.monitoring.metadata=true
# file collector
kieker.tools.source=kieker.tools.source.LogsReaderCompositeStage
kieker.tools.source.LogsReaderCompositeStage.logDirectories=${KIEKER_DIR}/
org.iobserve.stages.sink.CSVFileWriter.outputFile=${EXECUTION_RESULTS_DIR}/execution-${ITERATION}.csv
EOF
# execute evaluation
EVALUATE_SERVICE_PERFORMANCE_OPTS="-Dlog4j.configuration=file://$BASE_DIR/log4j.cfg"
${EVAL_SERVICE_PERFORMANCE} -c $BASE_DIR/eval.config >> eval.log
ITERATION=`expr $ITERATION + 1`
rm $BASE_DIR/eval.config
done
done
# end