OpenStack Rally性能测试

发表于:2015-3-31 12:53

字体: | 上一篇 | 下一篇 | 我要投稿

 作者:细胞在生    来源:51Testing软件测试网采编

  安装完成,数据库的配置这里暂时没做。
  创建一个随便命名的.json格式文件:
[root@rally rally]# cat existing.json
{
"type": "ExistingCloud",
"auth_url": 'http://172.16.105.189:35357/v2.0/',
"admin":{
"username": admin,
"password": admin,
"tenant_name": admin
}
}
[root@rally 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
[root@rally rally]# rally deployment check
keystone endpoints are 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 |
+------------+-----------+-----------+
  如此便可继续往下进行OpenStack基准测试了。
  举个测试启动虚拟机的例子:boot.json文件内容如下:
doc/samples/tasks/scenarios/nova/boot.json
[root@rally nova]# cat boot.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"}],(默认是没有这行的)
},
"runner": {
"type": "constant",
"times": 100,                     (测试次数100)
"concurrency": 2                 (并发数)
},
"context": {
"users": {
"tenants": 3,
"users_per_tenant": 2
}
}
}
]
}
[root@rally nova]# . /root/rally/.venv/bin/activate
[root@rally nova]# rally -v task start boot.json(/root/rally/doc/samples/tasks/scenarios/nova这是当前的目录)

  以上的图是测试结果。
22/2<12
《2023软件测试行业现状调查报告》独家发布~

关注51Testing

联系我们

快捷面板 站点地图 联系我们 广告服务 关于我们 站长统计 发展历程

法律顾问:上海兰迪律师事务所 项棋律师
版权所有 上海博为峰软件技术股份有限公司 Copyright©51testing.com 2003-2024
投诉及意见反馈:webmaster@51testing.com; 业务联系:service@51testing.com 021-64471599-8017

沪ICP备05003035号

沪公网安备 31010102002173号