OpenStack Rally Performance Test

Source: Internet
Author: User
Tags virtual environment virtualenv

Note : In the Test Nova, in the configuration file if you do not specify a network ID, then the default is an extranet network (the network is shared), if you want to specify a network, then the network must be a shared state, or will be error: Unable to discover the network. If you are testing more than 50 virtual machines, you need to modify the default values because the default values are limited and can be viewed with the following commands:

[email protected] nova]# Nova absolute-Limits+-------------------------+---------+| Name | Value |+-------------------------+---------+| Maxservermeta | -|| maxpersonality | -|| Maximagemeta | -|| Maxpersonalitysize |10240|| Maxtotalramsize |5120000|| Maxsecuritygrouprules | -|| Maxtotalkeypairs | -|| totalramused |58960|| maxsecuritygroups |Ten|| totalfloatingipsused |0|| totalinstancesused | -|| totalsecuritygroupsused |1|| Maxtotalfloatingips |Ten|| maxtotalinstances | $|| totalcoresused |Wuyi|| Maxtotalcores | -|+-------------------------+---------+

Modifying the default values can be modified by default in the interface, administrator, and then by modifying the configuration file on the node running the NOVA-API service nova.conf

Install rally:

[[email protected] Nova] #git clone https://github.com/stackforge/rally.git
[[email protected] rally]#/usr/bin/easy_install pip (installs Pip, there is no need to install)
[Email protected] rally]# MKDIR/ROOT/.PIP

[[email protected] rally]# vim/root/.pip/pip.conf (set PIP source for faster installation)
[Global]
Index-url=http://pypi.douban.com/simple
[[email protected] Nova] #pip install-u virtualenv Install the virtual environment (can not be installed, generally in order to clean the system or install a virtual environment)
[Email protected] nova]#virtualenv. Venv
[Email protected] nova]#. . venv/bin/activate
[[email protected] Nova] #yum install gcc-c++      (Installing the Build tool)
[email protected] Nova] #cd rally
[Email protected] rally]#./install_rally.sh
....

======================================================================
Information about your Rally installation:
* Method:system
* Database at:/var/lib/rally/database
* Configuration file at:/etc/rally
======================================================================

Installation is complete, the configuration of the database is not done here for the time being.

Create a randomly named. json format file:

[Email protected] rally]#Catexisting.json{"type":"Existingcloud","Auth_url":'http://172.16.105.189:35357/v2.0/',"Admin":{    "username": admin,"Password": admin,"Tenant_name": admin}}

[Email protected] rally]# Rally deployment Create--file=existing.json--name=existing
+--------------------------------------+----------------------------+----------+------------------+--------+
| UUID | Created_at | name | Status | active |
+--------------------------------------+----------------------------+----------+------------------+--------+
| 15ef811a-6460-407c-b391-c0f435f1ae54 | 2015-03-05 10:09:36.468176 | Existing | deploy->finished | |
+--------------------------------------+----------------------------+----------+------------------+--------+
Using deployment:15ef811a-6460-407c-b391-c0f435f1ae54

[Email protected] rally]# Rally deployment Check
Keystone Endpoints is valid and following services are available:
+------------+-----------+-----------+
| Services | Type | Status |
+------------+-----------+-----------+
| Ceilometer | metering | Available |
| Cinder | Volume | Available |
| Cinderv2 | Volumev2 | Available |
| Glance | Image | Available |
| Keystone | Identity | Available |
| Neutron | Network | Available |
| Nova | Compute | Available |
| NOVA_EC2 | EC2 | Available |
| novav3 | Computev3 | Available |
+------------+-----------+-----------+

This allows you to proceed with the OpenStack benchmark test.

example of a test boot virtual machine: The contents of the Boot.json file are as follows:

Doc/samples/tasks/scenarios/nova/boot.json

[Email protected] nova]#CatBoot.json {"Novaservers.boot_server": [        {            "args": {                "Flavor": {                    "name":"M1.large"                },                "Image": {                    "name":"Windows_server_2008r2_sp1_standard_64bit"                },                "NICs":[{"Net-id":"c7048568-c966-4d57-a927-90dd8830fb96"}], (default is not the line)},"Runner": {                "type":"constant",                " Times": -, (test number of times)"Concurrency":2 (concurrent number)            },            "Context": {                "Users": {                    "Tenants":3, ()"users_per_tenant":2                }            }        }    ]}
[Email protected] nova]#. /root/rally/.venv/bin/activate[[email protected] nova]# rally-v task start Boot.json (/root/rally/doc/ Samples/tasks/scenarios/nova This is the current directory)

The above figure is the test result.

RELATED Links: https://wiki.openstack.org/wiki/Rally

Https://rally.readthedocs.org/en/latest/tutorial/step_0_installation.html

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

OpenStack Rally Performance Test

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.