Skip to content
Snippets Groups Projects
Commit f34fe0c1 authored by Reiner Jung's avatar Reiner Jung
Browse files

Updated setup.

parent d7c70d29
No related branches found
No related tags found
No related merge requests found
# Ignore Gradle project-specific cache directory
**/.gradle/**
/receiver
/benchmark
.classpath
.settings
**/.classpath
......@@ -10,37 +7,5 @@
**/.settings/**
**/build/**
**/bin/**
frameworks/log_*
frameworks/Kieker/benchmark/
frameworks/Kieker/data/
frameworks/Kieker/MooBench.jar
frameworks/Kieker/kieker-*-aspectj.jar
frameworks/Kieker/receiver/
frameworks/Kieker/results-Kieker/
frameworks/Kieker/benchmark_*
frameworks/SPASSmeter/spassmeter.log
frameworks/SPASSmeter/tmp/
frameworks/SPASSmeter/MooBench.jar
frameworks/inspectIT/inspectit.log
frameworks/inspectIT/MooBench.jar
frameworks/inspectIT/logs/
frameworks/inspectIT/tmp/
frameworks/inspectIT/zipkin/
frameworks/inspectIT/configuration.txt
frameworks/inspectIT/results-inspectIT/
frameworks/inspectIT/prometheus-2.28.1.linux-amd64/
frameworks/OpenTelemetry/results-OpenTelemetry/
frameworks/OpenTelemetry/tmp/
frameworks/OpenTelemetry/*.txt
frameworks/OpenTelemetry/OpenTelemetry.log
frameworks/OpenTelemetry/MooBench.jar
frameworks/OpenTelemetry/zipkin/
frameworks/OpenTelemetry/lib/
frameworks/OpenTelemetry/jaeger-1.24.0-linux-amd64/
frameworks/OpenTelemetry/prometheus-2.28.1.linux-amd64/
frameworks/OpenTelemetry/prometheus-2.28.1.linux-amd64.tar.gz
frameworks/Kieker/compile-results/
tools/getConfidenceIntervalTable/*csv
/.gradle/
/build/
.RData
.Rhistory
benchmark/**
data/**
kieker-2.0.0-SNAPSHOT-aspectj.jar
receiver/**
results-java/**
......@@ -25,10 +25,10 @@ else
exit 1
fi
if [ -f "${BASE_DIR}/../common-functions.sh" ] ; then
source "${BASE_DIR}/../common-functions.sh"
if [ -f "${MAIN_DIR}/frameworks/common-functions.sh" ] ; then
source "${MAIN_DIR}/frameworks/common-functions.sh"
else
echo "Missing library: ${BASE_DIR}/../common-functions.sh"
echo "Missing library: ${MAIN_DIR}/frameworks/common-functions.sh"
exit 1
fi
......@@ -163,8 +163,8 @@ if [ "$MODE" == "execute" ] ; then
# Create R labels
LABELS=$(createRLabels)
runR
runRyaml
read R
cleanupResults
else
executeBenchmarkBody $OPTION 1 1
......
......@@ -9,7 +9,7 @@ RSCRIPT_PATH="${BASE_DIR}/stats.csv.r"
MAIN_DIR="${BASE_DIR}/../../.."
RECEIVER_ARCHIVE="${MAIN_DIR}/tools/receiver/build/distributions/receiver.tar"
BENCHMARK_ARCHIVE="${MAIN_DIR}/tools/benchmark/build/distributions/benchmark.tar"
MOOBENCH_ARCHIVE="${MAIN_DIR}/tools/benchmark/build/distributions/benchmark.tar"
DATA_DIR="${BASE_DIR}/data"
AGENT="${BASE_DIR}/kieker-2.0.0-SNAPSHOT-aspectj.jar"
......
......@@ -8,17 +8,16 @@ then
fi
function getAgent() {
info "Checking whether Kieker is present in $AGENT"
if [ ! -f $AGENT ] ; then
info "Checking whether Kieker is present in ${AGENT}"
if [ ! -f "${AGENT}" ] ; then
# get agent
export VERSION_PATH=`curl "https://oss.sonatype.org/service/local/repositories/snapshots/content/net/kieker-monitoring/kieker/" | grep '<resourceURI>' | sed 's/ *<resourceURI>//g' | sed 's/<\/resourceURI>//g' | grep '/$' | grep -v ".xml" | head -n 1`
export AGENT_PATH=`curl "${VERSION_PATH}" | grep 'aspectj.jar</resourceURI' | sort | sed 's/ *<resourceURI>//g' | sed 's/<\/resourceURI>//g' | tail -1`
curl "${AGENT_PATH}" > "${AGENT}"
if [ ! -f $AGENT ] | [ -s $AGENT ] ; then
if [ ! -f "${AGENT}" ] || [ -s "${AGENT}" ] ; then
error "Kieker download from $AGENT_PATH failed; please asure that a correct Kieker AspectJ file is present!"
fi
fi
}
......
......@@ -87,22 +87,19 @@ resultstext <- formatC(printvalues,format="f",digits=4,width=8)
print(resultstext)
write(paste("Recursion Depth: ", recursion_depth),file=outtxt_fn,append=TRUE)
write("response time",file=outtxt_fn,append=TRUE)
write.table(resultstext,file=outtxt_fn,append=TRUE,quote=FALSE,sep="\t",col.names=FALSE)
concResult <- ""
headResult <- ""
# write the first n-1 elements preceded by a comma (,)
for (writer_idx in (1:(numberOfWriters-1))) {
headResult <- paste(headResult, configs.labels[writer_idx], ",")
concResult <- paste(concResult, printvalues["mean",writer_idx], ",")
currentTime <- as.numeric(Sys.time())
write("Kieker:", file=out_yaml_fn,append=FALSE)
write(paste("- timestamp:", currentTime), file=out_yaml_fn, append=TRUE)
for (writer_idx in (1:(numberOfWriters))) {
write(paste(" ", configs.labels[writer_idx], ": [",
format(printvalues["mean",writer_idx], scientific=TRUE), ",",
format(printvalues["sd",writer_idx], scientific=TRUE), ",",
format(printvalues["ci95%",writer_idx], scientific=TRUE), ",",
format(printvalues["md25%",writer_idx], scientific=TRUE), ",",
format(printvalues["md50%",writer_idx], scientific=TRUE), ",",
format(printvalues["md75%",writer_idx], scientific=TRUE), ",",
format(printvalues["max",writer_idx], scientific=TRUE), ",",
format(printvalues["min",writer_idx], scientific=TRUE), "]"), file=out_yaml_fn, append=TRUE)
}
# write the last without a comma
headResult <- paste(headResult, configs.labels[numberOfWriters])
concResult <- paste(concResult, printvalues["mean", numberOfWriters])
write(headResult,file=outcsv_fn,append=TRUE)
write(concResult,file=outcsv_fn,append=TRUE)
# end
OpenTelemetry.log
lib/**
results-OpenTelemetry/**
zipkin/**
benchmark/**
......@@ -56,6 +56,30 @@ source("${RSCRIPT_PATH}")
EOF
}
## Generate Results file
function runRyaml() {
cat << EOF
results_fn="${RAWFN}"
out_yaml_fn="${RESULTS_DIR}/results.yaml"
configs.loop=${NUM_OF_LOOPS}
configs.recursion=${RECURSION_DEPTH}
configs.labels=c($LABELS)
results.count=${TOTAL_NUM_OF_CALLS}
results.skip=${TOTAL_NUM_OF_CALLS}/2
source("${RSCRIPT_PATH}")
EOF
R --vanilla --silent << EOF
results_fn="${RAWFN}"
out_yaml_fn="${RESULTS_DIR}/results.yaml"
configs.loop=${NUM_OF_LOOPS}
configs.recursion=${RECURSION_DEPTH}
configs.labels=c($LABELS)
results.count=${TOTAL_NUM_OF_CALLS}
results.skip=${TOTAL_NUM_OF_CALLS}/2
source("${RSCRIPT_PATH}")
EOF
}
function startZipkin {
if [ ! -d "${BASE_DIR}/zipkin" ] || [ ! -f "${BASE_DIR}/zipkin/zipkin.jar" ]
then
......@@ -217,7 +241,7 @@ if [ -z $SLEEP_TIME ]; then
SLEEP_TIME=30 ## 30
fi
if [ -z $NUM_OF_LOOPS ]; then
NUM_OF_LOOPS=10 ## 10
NUM_OF_LOOPS=1 #0 ## 10
fi
if [ -z $THREADS ]; then
THREADS=1 ## 1
......
agent/
CMR/
agent/**
CMR/**
results-inspectIT/**
zipkin/**
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