forked from klaytn/klaytn-deploy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run-perf-test-prepare.sh
executable file
·26 lines (22 loc) · 1 KB
/
run-perf-test-prepare.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
#!/bin/bash
./1.create.sh
if [ $? -ne 0 ]; then
echo "Creating instances failed at 9-1.preparePerformanceTest.sh, please terminate any remaining instances.."
exit 1
fi
./2.prepare.sh
if [ $? -ne 0 ]; then
echo "Preparation failed at 9-1.preparePerformanceTest.sh, script will run ./docker_clean_all.sh and retry preparation automatically.."
./docker_clean_all.sh
./2.prepare.sh
if [ $? -ne 0 ]; then
echo "Preparation failed again at 9-1.preparePerformanceTest.sh, terminate performance test and deployed instances.."
./5.terminateInstances.sh
exit 1
fi
fi
./deploy cnbn start && ./deploy bn start &&./deploy cn start && ./deploy pn start && ./deploy en start && ./deploy scn start && ./deploy grafana start &&./deploy locustSC master start && ./deploy locustSC slave start && ./deploy graylog start
if [ $? -ne 0 ]; then
echo "Failed while starting deployed instances at 9-1.preparePerformanceTest.sh, please retry starting the instances or terminate them."
exit 1
fi