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

Minor fixes.

parent eee52eed
No related branches found
No related tags found
No related merge requests found
...@@ -55,7 +55,7 @@ pipeline { ...@@ -55,7 +55,7 @@ pipeline {
sh ''' sh '''
cd ${BASE_DIR} cd ${BASE_DIR}
sftp -oNoHostAuthenticationForLocalhost=yes -oStrictHostKeyChecking=no -oUser=repo -F /dev/null -i ${KEYSTORE} ${UPDATE_SITE_URL}/all-results.json sftp -oNoHostAuthenticationForLocalhost=yes -oStrictHostKeyChecking=no -oUser=repo -F /dev/null -i ${KEYSTORE} ${UPDATE_SITE_URL}/all-results.json
compile-results/bin/compile-results results-kieker/results-text.csv all-results.json compile-results/bin/compile-results results-Kieker/results-text.csv all-results.json
echo "put all-results.json" | sftp -oNoHostAuthenticationForLocalhost=yes -oStrictHostKeyChecking=no -oUser=repo -F /dev/null -i ${KEYSTORE} ${UPDATE_SITE_URL} echo "put all-results.json" | sftp -oNoHostAuthenticationForLocalhost=yes -oStrictHostKeyChecking=no -oUser=repo -F /dev/null -i ${KEYSTORE} ${UPDATE_SITE_URL}
echo "put partial-results.json" | sftp -oNoHostAuthenticationForLocalhost=yes -oStrictHostKeyChecking=no -oUser=repo -F /dev/null -i ${KEYSTORE} ${UPDATE_SITE_URL} echo "put partial-results.json" | sftp -oNoHostAuthenticationForLocalhost=yes -oStrictHostKeyChecking=no -oUser=repo -F /dev/null -i ${KEYSTORE} ${UPDATE_SITE_URL}
echo "put relative-results.json" | sftp -oNoHostAuthenticationForLocalhost=yes -oStrictHostKeyChecking=no -oUser=repo -F /dev/null -i ${KEYSTORE} ${UPDATE_SITE_URL} echo "put relative-results.json" | sftp -oNoHostAuthenticationForLocalhost=yes -oStrictHostKeyChecking=no -oUser=repo -F /dev/null -i ${KEYSTORE} ${UPDATE_SITE_URL}
......
#!/bin/bash #!/bin/bash
JAVABIN="/localhome/ffi/jdk1.7.0_25/bin/" JAVA_BIN="/localhome/ffi/jdk1.7.0_25/bin/java"
REMOTEHOST="blade1" REMOTEHOST="blade1"
REMOTEBASE_DIR="/localhome/ffi/" REMOTEBASE_DIR="/localhome/ffi/"
......
...@@ -249,3 +249,5 @@ rm -f ${RAWFN}* ...@@ -249,3 +249,5 @@ rm -f ${RAWFN}*
zip -jqr ${RESULTS_DIR}/worker.zip ${RESULTS_DIR}/worker*.log zip -jqr ${RESULTS_DIR}/worker.zip ${RESULTS_DIR}/worker*.log
rm -f ${RESULTS_DIR}/worker*.log rm -f ${RESULTS_DIR}/worker*.log
[ -f ${BASE_DIR}/nohup.out ] && mv ${BASE_DIR}/nohup.out ${RESULTS_DIR} [ -f ${BASE_DIR}/nohup.out ] && mv ${BASE_DIR}/nohup.out ${RESULTS_DIR}
# end
...@@ -16,20 +16,13 @@ else ...@@ -16,20 +16,13 @@ else
exit 1 exit 1
fi fi
if [ -f "${BASE_DIR}/config" ] ; then if [ -f "${BASE_DIR}/common-functions.sh" ] ; then
. "${BASE_DIR}../common-functions.sh" . "${BASE_DIR}../common-functions.sh"
else else
echo "Missing configuration: ${BASE_DIR}/common-functions.sh" echo "Missing configuration: ${BASE_DIR}/../common-functions.sh"
exit 1 exit 1
fi fi
getKiekerAgent
# copy receiver
tar -xvpf ${BASE_DIR}/../../tools/receiver/build/distributions/receiver.tar
# copy result compiler
tar -xvpf ${BASE_DIR}/../../tools/compile-results/build/distributions/compile-results.tar
if [ -f "${BASE_DIR}/common-functions" ] ; then if [ -f "${BASE_DIR}/common-functions" ] ; then
. ${BASE_DIR}/common-functions . ${BASE_DIR}/common-functions
else else
...@@ -37,6 +30,10 @@ else ...@@ -37,6 +30,10 @@ else
exit 1 exit 1
fi fi
getKiekerAgent
PARENT=`dirname "${RESULTS_DIR}"`
RECEIVER="${BASE_DIR}/receiver/bin/receiver"
# check command line parameters # check command line parameters
if [ "$1" == "" ] ; then if [ "$1" == "" ] ; then
...@@ -53,10 +50,9 @@ fi ...@@ -53,10 +50,9 @@ fi
# test input parameters and configuration # test input parameters and configuration
#checkFile R-script "${RSCRIPT_PATH}" #checkFile R-script "${RSCRIPT_PATH}"
checkDirectory DATA_DIR "${DATA_DIR}" create checkDirectory DATA_DIR "${DATA_DIR}" create
checkDirectory result-base "${PARENT}"
PARENT=`dirname "${RESULTS_DIR}"`
checkDirectory result-base "$PARENT"
checkFile ApsectJ-Agent "${AGENT}" checkFile ApsectJ-Agent "${AGENT}"
checkExecutable Receiver "${RECEIVER}"
information "----------------------------------" information "----------------------------------"
information "Running benchmark..." information "Running benchmark..."
...@@ -95,8 +91,8 @@ WRITER_CONFIG[2]="-Dkieker.monitoring.enabled=true -Dkieker.monitoring.writer=ki ...@@ -95,8 +91,8 @@ WRITER_CONFIG[2]="-Dkieker.monitoring.enabled=true -Dkieker.monitoring.writer=ki
WRITER_CONFIG[3]="-Dkieker.monitoring.enabled=true -Dkieker.monitoring.writer=kieker.monitoring.writer.filesystem.FileWriter -Dkieker.monitoring.writer.filesystem.FileWriter.logStreamHandler=kieker.monitoring.writer.filesystem.TextLogStreamHandler -Dkieker.monitoring.writer.filesystem.FileWriter.customStoragePath=${DATA_DIR}/" WRITER_CONFIG[3]="-Dkieker.monitoring.enabled=true -Dkieker.monitoring.writer=kieker.monitoring.writer.filesystem.FileWriter -Dkieker.monitoring.writer.filesystem.FileWriter.logStreamHandler=kieker.monitoring.writer.filesystem.TextLogStreamHandler -Dkieker.monitoring.writer.filesystem.FileWriter.customStoragePath=${DATA_DIR}/"
WRITER_CONFIG[4]="-Dkieker.monitoring.enabled=true -Dkieker.monitoring.writer=kieker.monitoring.writer.filesystem.FileWriter -Dkieker.monitoring.writer.filesystem.FileWriter.logStreamHandler=kieker.monitoring.writer.filesystem.BinaryLogStreamHandler -Dkieker.monitoring.writer.filesystem.FileWriter.bufferSize=8192 -Dkieker.monitoring.writer.filesystem.FileWriter.customStoragePath=${DATA_DIR}/" WRITER_CONFIG[4]="-Dkieker.monitoring.enabled=true -Dkieker.monitoring.writer=kieker.monitoring.writer.filesystem.FileWriter -Dkieker.monitoring.writer.filesystem.FileWriter.logStreamHandler=kieker.monitoring.writer.filesystem.BinaryLogStreamHandler -Dkieker.monitoring.writer.filesystem.FileWriter.bufferSize=8192 -Dkieker.monitoring.writer.filesystem.FileWriter.customStoragePath=${DATA_DIR}/"
WRITER_CONFIG[5]="-Dkieker.monitoring.writer=kieker.monitoring.writer.tcp.SingleSocketTcpWriter -Dkieker.monitoring.writer.tcp.SingleSocketTcpWriter.port=2345" WRITER_CONFIG[5]="-Dkieker.monitoring.writer=kieker.monitoring.writer.tcp.SingleSocketTcpWriter -Dkieker.monitoring.writer.tcp.SingleSocketTcpWriter.port=2345"
RECEIVER[5]="${BASE_DIR}/collector-2.0/bin/collector -p 2345" #RECEIVER[5]="${BASE_DIR}/collector-2.0/bin/collector -p 2345"
RECEIVER[5]="${BASE_DIR}/receiver/bin/receiver 2345" RECEIVER[5]="${RECEIVER} 2345"
## Write configuration ## Write configuration
uname -a >${RESULTS_DIR}/configuration.txt uname -a >${RESULTS_DIR}/configuration.txt
...@@ -183,7 +179,7 @@ function execute-benchmark() { ...@@ -183,7 +179,7 @@ function execute-benchmark() {
recursion=${RECURSION_DEPTH} recursion=${RECURSION_DEPTH}
information "## Starting iteration ${loop}/${NUM_OF_LOOPS}" information "## Starting iteration ${loop}/${NUM_OF_LOOPS}"
echo "## Starting iteration ${loop}/${NUM_OF_LOOPS}" >>${DATA_DIR}/kieker.log echo "## Starting iteration ${loop}/${NUM_OF_LOOPS}" >> "${DATA_DIR}/kieker.log"
for ((index=0;index<${#WRITER_CONFIG[@]};index+=1)); do for ((index=0;index<${#WRITER_CONFIG[@]};index+=1)); do
execute-benchmark-body $index $loop $recursion execute-benchmark-body $index $loop $recursion
...@@ -192,9 +188,9 @@ function execute-benchmark() { ...@@ -192,9 +188,9 @@ function execute-benchmark() {
printIntermediaryResults printIntermediaryResults
done done
mv ${DATA_DIR}/kieker.log ${RESULTS_DIR}/kieker.log mv "${DATA_DIR}/kieker.log" "${RESULTS_DIR}/kieker.log"
[ -f ${RESULTS_DIR}/hotspot-1-${RECURSION_DEPTH}-1.log ] && grep "<task " ${RESULTS_DIR}/hotspot-*.log > ${RESULTS_DIR}/log.log [ -f "${RESULTS_DIR}/hotspot-1-${RECURSION_DEPTH}-1.log" ] && grep "<task " "${RESULTS_DIR}"/hotspot-*.log > "${RESULTS_DIR}/log.log"
[ -f ${DATA_DIR}/errorlog.txt ] && mv ${DATA_DIR}/errorlog.txt ${RESULTS_DIR} [ -f "${DATA_DIR}/errorlog.txt" ] && mv "${DATA_DIR}/errorlog.txt" "${RESULTS_DIR}"
} }
## Execute benchmark ## Execute benchmark
......
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