Horizon基准仪表盘,便于管理反弹测试和报告
horizon-benchmark-dashboard的Python项目详细描述
Horizon Rally Dashboard可快速轻松地运行基准情景并查看其结果。
安装
- 将“基准”仪表板添加到已安装的应用程序元组。
- 场景定义的默认路径是/srv/rally/scenarios,但它在horizon安装的local_settings.py中随RALLY_ROOT变量而改变。
RALLY_ROOT='/srv/rally/scenarios'RALLY_DB="mysql://rally:password@127.0.0.1/rally"RALLY_PLUGINS=['rally.plugins.openstack','rally.plugins.common']# or load allRALLY_PLUGINS=['rally.plugins',]
创建或克隆场景定义到默认位置/srv/rally/scenarios,或将RALLY_ROOT变量设置到您的位置。
用法
服务场景
ls -la /srv/rally/scenarios/tasks/scenarios/nova/ boot-and-delete-multiple.yaml boot-and-delete-server-with-keypairs.yaml boot-and-delete-server-with-secgroups.yaml boot-and-delete.yaml boot-from-volume-and-delete.yaml boot-snapshot-boot-delete.yaml create-and-delete-secgroups.yaml
长时间运行的任务
现在为每个任务创建了一个新线程,这可能会导致地平线过载,但异步任务行为可能会被覆盖:
defrun_async(method):# call Celery or whateverThread(target=method,args=[]).start()
将方法设置为benchmark_dashboard.utils.async以启用非同步任务。