1 ##############################################################################
2 # Copyright (c) 2017 Huawei Technologies Co.,Ltd and others.
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
10 # Sample benchmark task config file
11 # measure storage performance using fio
12 # can be used both on Openstack and Kubernetes with "context_type"
14 # For this sample just like running the command below on the test vm and
15 # getting benchmark info back to the yardstick.
17 # sudo fio -filename=/home/ubuntu/data.raw -bs=4k -ipdepth=1 -rw=rw \
18 # -ramp_time=10 -runtime=60 -name=yardstick-fio -ioengine=libaio \
19 # -direct=1 -group_reporting -numjobs=1 -time_based \
20 # --output-format=json
22 {% set context_type = context_type or "Heat" %}
23 {% set separator = separator or "." %}
24 {% if context_type == "Kubernetes" %}
25 {% set separator = "-" %}
28 schema: "yardstick:task:0.1"
34 filename: /tmp/data.raw
39 host: fio{{ separator }}demo
54 type: {{ context_type }}
56 {% if context_type == "Kubernetes" %}
60 image: opnfv/yardstick-image-k8s
69 args: ['-c', 'mkdir /root/.ssh; cp /tmp/.ssh/authorized_keys ~/.ssh/.;
70 chmod 700 ~/.ssh; chmod 600 ~/.ssh/*; service ssh restart;
71 while true ; do sleep 10000; done']
73 image: yardstick-image
74 flavor: yardstick-flavor