a storage testing framework for data center via run test scripts in VMs
- get and compile Python 2.7 under /root/Desktop/workdir/
- download base.img.tar, disk-0.img.tar, qemu-1.5.3.tar from http://pan.baidu.com/s/1hqf11v2 to /root/Desktop/workdir/template/
- edit the config.ini file, set your Host-Node's password, and the place where your VM's disk images
- then run ./gethostready.py, get your host ready for VMs to start
- then run ./startVMs.py, start the test VMs, when all VMs get start, you can get a file under /root/Desktop/work/result/ named boot.XXX…… contains VMs' start time and up time
- then run ./nokeyssh.py, then make VMs and Host ssh each other via no-password
- then run ./getresult.py, scp all the test scripts under /root/Desktop/workdir/script/ to each VM, and run, then get the results, scp back to Host, the results keep under /root/Desktop/workdir/result/xxVM/ folder
- then run ./getreport, the parse program will get csv report for you, report keeps under /root/Desktop/workdir/report/
- now, attention, you should run ./reset-boot-time.sh to make sure the next time, you can get the VM's right start time
- Okay, finally you should halt all the VM, just run ./exec-on-all.py halt
- If you have any questions, ask me
I used this framework testd Gluster, NFS, iSCSI, ceph, Sheepdog, local HDD, local SSD, their Read/Write rate and IOPS and bandwith.
a typical report like this:
https://github.com/foodotbar/Ninja/blob/master/report/details.2vms.2014-02-18_20_42_33.csv
and this:
https://github.com/foodotbar/Ninja/blob/master/report/fiotests.2vms.2014-02-20_22_15_58.csv