素材巴巴 > 程序开发 >

OpenStack 性能测试Rally

程序开发 2023-09-03 20:17:04



OpenStack 已经成为企业构建私有云的首选,部署openstack 的方式有很多种,那么如何对openstack 环境做性能评估呢?  Rally 就是你想要的测试项目


下载安装Rally

参考 http://rally.readthedocs.org/en/latest/tutorial/step_0_installation.html

git clone https://github.com/stackforge/rally.git
 ./rally/install_rally.sh -v
 

配置测试环境

参考

http://rally.readthedocs.org/en/latest/tutorial/step_1_setting_up_env_and_running_benchmark_from_samples.html

http://rally.readthedocs.org/en/latest/tutorial/step_3_benchmarking_with_existing_users.html

rally 代码的 samples/deployments 目录下有模板可以参考

[root@localhost deployments]# pwd
 /root/rally/samples/deployments
 [root@localhost deployments]# ll
 total 24
 -rw-r--r--. 1 root root  313 Apr  8 14:52 existing.json
 -rw-r--r--. 1 root root  430 Apr  8 14:52 existing-keystone-v3.json
 -rw-r--r--. 1 root root  423 Apr  8 14:52 existing-with-given-endpoint.json
 -rw-r--r--. 1 root root  558 Apr  8 14:52 existing-with-predefined-users.json
 drwxr-xr-x. 2 root root 4096 Apr  8 14:52 for_deploying_openstack_with_rally
 -rw-r--r--. 1 root root 1396 Apr  8 14:52 README.rst

我的existing.json

[root@localhost rally]# cat existing.json 
 {"type": "ExistingCloud","auth_url": "http://192.168.132.53:5000/v3/","region_name": "RegionOne","endpoint_type": "public","admin": {"username": "admin","password": "admin","tenant_name": "admin"},"https_insecure": false,"https_cacert": ""
 }

标签:

素材巴巴 Copyright © 2013-2021 http://www.sucaibaba.com/. Some Rights Reserved. 备案号:备案中。