Rally 简介
Rally 集成了部署、API测试、压力测试功能(如下图),但我们一般用 devstack 部署,tempest 做 API 测试,因此 Rally 常用于模拟高并发场景的压力测试。Rally 测试 openstack 在并发下 API 的相应时间和请求成功率,从而测试出 openstack 规模和性能。
(rally)[root@controller
~] # rally deployment check keystone endpoints
are valid and following services are available: +------------+----------------+-----------+ | services | type |
status | +------------+----------------+-----------+ | ceilometer | metering
| Available | | cinder | volume
| Available | | cinderv2 | volumev2
| Available | | ec2 | ec2
| Available | | glance | image
| Available | | heat | cloudformation
| Available | | heat | orchestration
| Available | | keystone | identity
| Available | | neutron | network
| Available | | nova | compute
| Available | | novav3 | computev3
| Available | | s3 | s3
| Available | | trove | database
| Available | +------------+----------------+-----------+ |
3. Benchmark Openstack Peformance
rally/doc/samples/tasks/scenarios/ 包含各个组件的配置文件,直接使用即可,举例:
1)测试 keystone 创建-删除用户性能
$ rally -v task start rally/doc/samples/tasks/scenarios/keystone/create-and-delete-user.json
$ rally -v task start rally/doc/samples/tasks/scenarios/nova/boot-and-delete.json
4. Refference
https://wiki.openstack.org/wiki/Rally
http://prajnagarden.com/openstack/2014/05/06/rally-guide-01/
原文地址:http://blog.csdn.net/wsfdl/article/details/41654373