Rally Introduction
Rally integrates deployment, API testing, stress testing capabilities (such as), but we typically deploy with Devstack, Tempest API testing, so Rally is often used to simulate stress testing in high-concurrency scenarios. Rally tests the OpenStack scale and performance by testing the corresponding time and request success rate of OpenStack in concurrent APIs.
1. Deploy Rally
$ git clone https://git.openstack.org/stackforge/rally $./rally/install_rally.sh-v#使用virtualenv Installation Rally
2. Configure Rally
$ source/opt/rally/bin/activate $ rally Deployment Create--filename=existing.json--name=openstack # Initialize R Ally, Keystone URL of the desired test OpenStack cluster, user tenant information is written to Existing.json
$ rally Deployment Check # View the service of the cluster
(rally)[[email protected] ~]
# 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/contains configuration files for each component, which can be used directly, for example:
1) Test Keystone Create-delete user performance
$ rally-v task start Rally/doc/samples/tasks/scenarios/keystone/create-and-delete-user.json
Result:
2) Test Nova Create-delete virtual machine performance
$ rally-v task start Rally/doc/samples/tasks/scenarios/nova/boot-and-delete.json
Result:
4. Refference
Https://wiki.openstack.org/wiki/Rally
http://prajnagarden.com/openstack/2014/05/06/rally-guide-01/
Openstack Performance Test Rally