延续上一个文章的做接下来的测试,环境是一个proxy和三个storage。
1、性能测试
测试一:五个线程,每个线程上传一个大小差不多一个G的文件
/data/swift/upload> du -sh test*.zip
987M test1.zip
987M test2.zip
987M test3.zip
987M test4.zip
987M test.zip
上传
swift -Ahttp://192.168.1.211:8090/auth/v1.0 -U system:root -K testpass upload container1 test.zip
swift -Ahttp://192.168.1.211:8090/auth/v1.0 -U system:root -K testpass upload container2 test1.zip
swift -Ahttp://192.168.1.211:8090/auth/v1.0 -U system:root -K testpass upload container3 test2.zip
swift -Ahttp://192.168.1.211:8090/auth/v1.0 -U system:root -K testpass upload container4 test3.zip
swift -Ahttp://192.168.1.211:8090/auth/v1.0 -U system:root -K testpass upload container5 test4.zip
共用时8:30:45
存储节点查看文件
/srv/node/sdb1> du -sh *
16K accounts
356M async_pending
129M containers
4.9G objects
0 tmp
查看上传的文件
/data/swift/upload> swift -Ahttp://192.168.1.211:8090/auth/v1.0 -U system:root -K testpass list container1
test.zip
/data/swift/upload> swift -Ahttp://192.168.1.211:8090/auth/v1.0 -U system:root -K testpass list container2
test1.zip
/data/swift/upload> swift -Ahttp://192.168.1.211:8090/auth/v1.0 -U system:root -K testpass list container3
test2.zip
/data/swift/upload> swift -Ahttp://192.168.1.211:8090/auth/v1.0 -U system:root -K testpass list container4
test3.zip
/data/swift/upload> swift -Ahttp://192.168.1.211:8090/auth/v1.0 -U system:root -K testpass list container5
test4.zip
测试二,十个线程:
/data/swift/upload/test100M> du -sh *
/data/swift/upload/test100M> du -sh *
505M test10.zip
505M test1.zip
505M test2.zip
505M test3.zip
505M test4.zip
505M test5.zip
505M test6.zip