openstack 性能测试 Rally

本文介绍了如何使用Rally工具对OpenStack环境进行性能评估。通过下载和安装Rally,配置测试环境,创建deployment,并运行Keystone用户创建和删除的基准测试,展示Rally在性能测试中的应用。
摘要由CSDN通过智能技术生成

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


下载安装Rally

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

  1. git clone https://github.com/stackforge/rally.git  
  2. ./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 目录下有模板可以参考

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

我的existing.json

  1. [root@localhost rally]# cat existing.json   
  2. {  
  3.     "type": "ExistingCloud",  
  4.     "auth_url": "http://192.168.132.53:5000/v3/",  
  5.     "region_name": "RegionOne",  
  6.     "endpoint_type": "public",  
  7.     "admin": {  
  8.         "username": "admin",  
  9.         "password": "admin",  
  10.         "tenant_name": "admin"  
  11.     },  
  12.     "https_ins
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值