Rally Introduction
Rally integrates deployment, API testing, stress testing capabilities (pictured below), 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_rall Y.sh-v #使用 virtualenv Installation Rally
2. Configure Rally
$ Source/opt/rally/bin/activate $ rally Deployment Create--filename=existing.json--name=openstack # Initialize rally, put Keystone URL of the desired test OpenStack cluster, user tenant information written to Existing.json
$ rally Deployment Check , &NB Sp # View service for a cluster
(rally) [Root@controller ~] # Rally Deployment Check Keystone Endpoints is valid and following services is 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/