OpenStack Rally 性能测试(2)

 

[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这是当前的目录)

OpenStack Rally 性能测试

以上的图是测试结果。

当通过rally deployment check检查OpenStack的service状态时,出现__unknown__,这是由于keystone 的service catalog没有返回service name并且rally无法通过type识别service,但此时可以利用rally plugin show api_version,来指定相应的api版本,举个例子:

# In this example we will launch NovaKeypair.create_and_list_keypairs # scenario on 2.2 api version. { "NovaKeypair.create_and_list_keypairs": [ { "args": { "key_type": "x509" }, "runner": { "type": "constant", "times": 10, "concurrency": 2 }, "context": { "users": { "tenants": 3, "users_per_tenant": 2 }, "api_versions": { "nova": { "version": 2.2 } } } } ] }

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/268bbddc742333cee92351ca7df3adef.html