forked from peterducai/etcd-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
runner.sh
executable file
·53 lines (51 loc) · 957 Bytes
/
runner.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
#!/bin/bash
STAMP=$(date +%Y-%m-%d_%H-%M-%S)
case "$1" in
etcd)
./etcd-mg.sh $2 $3
;;
toolong)
etcd_tooktoolong.py $2
;;
fio)
./fio_suite.sh
;;
full)
./iostat.sh &
./top.sh &
sleep 1
./fio_suite2.sh & > fio.log
wait
echo "All tests are complete"
echo -e ""
echo -e "RESULTS:"
cat top.log
echo -e ""
cat iostat.log
echo -e ""
cat r70_w30_1G_d4.log
echo -e ""
cat r70_w30_200M_d4.log
echo -e ""
cat r30_w70_200M_d1.log
echo -e ""
cat r30_w70_1G_d1.log
echo -e ""
cat r70_w30_1G_d4.log
echo -e ""
cat r30_w70_200M_d1.log
echo -e ""
cat r30_w70_1G_d1.log
#
rm r70_w30_1G_d4.log
rm r70_w30_200M_d4.log
rm r30_w70_200M_d1.log
rm r30_w70_1G_d1.log
rm r70_w30_1G_d4.log
rm r30_w70_200M_d1.log
rm r30_w70_1G_d1.log
;;
*)
echo -e "NO PARAMS. Choose 'etcd' or 'fio' or 'toolong'"
;;
esac