performance-docs/scripts/mesos-marathon-performance-testing/run_full_tests.sh
Sergey Galkin 1cc90a4123 Add scripts for mesos marathon performance testing
This is a draft

1. application_managment_helper.py is helper to create or delete apps in marathon
2. marathon-scale-tests.py is scripts for testing marathon and mesos
3. run_full_tests.sh is script for run all tests and generate json with results
4. result-analize.py is script for generate RST report with table and graphs

Change-Id: Ic7dc472c90bf5746c3c2b364afc694c83b8509b7
2016-03-31 14:16:41 +03:00

27 lines
924 B
Bash
Executable File

#!/bin/bash
DATE=$(date +%Y-%m-%d-%H-%M-%S)
FILE_RESULTS="marathon-mesos-test-results-$DATE"
MARATHON_URL="http://127.0.0.1:8080/marathon"
TOP_DIR=$(cd $(dirname "$0") && pwd)
cd ${TOP_DIR}
virtualenv .venv
VPYTHON=".venv/bin/python"
.venv/bin/pip install -r requirements.txt
echo "[" > ${FILE_RESULTS}.json
for test in create update_cpu update_mem update_disk update_instances restart delete; do
for concur in 1 2 4 8 16; do
for nodes in 50 100 500; do
echo "$(date) - Start test $test with concurrency $concur with $nodes nodes"
$VPYTHON marathon-scale-tests.py -m $MARATHON_URL -t${test} -c${concur} -n${nodes} -s >> ${FILE_RESULTS}.json
# If something wrong, clean all
sleep 30
$VPYTHON application_managment_helper.py -m $MARATHON_URL -edelete
done
done
done
sed -i '$ s/.$//' ${FILE_RESULTS}.json
echo "]" >> ${FILE_RESULTS}.json