1 ##############################################################################
2 # Copyright (c) 2018 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
13 # For this sample just like running the command below on the test vm and
14 # getting benchmark info back to the yardstick.
16 # sudo fio -filename=/home/ubuntu/data.raw -bs=4k -ipdepth=1 -rw=rw \
17 # -ramp_time=10 -runtime=60 -name=yardstick-fio -ioengine=libaio \
18 # -direct=1 -group_reporting -numjobs=1 -time_based \
19 # --output-format=json
21 schema: "yardstick:task:0.1"
24 {% set directory = directory or '/FIO_Test' %}
25 {% set stack_num = stack_num or 1 %}
26 {% set volume_num = volume_num or "1" %}
27 {% set rw = rw or "randrw" %}
28 {% set bs = bs or "4k" %}
29 {% set size = size or "30g" %}
30 {% set rwmixwrite = rwmixwrite or "50" %}
31 {% set numjobs = numjobs or "1" %}
32 {% set direct = direct or "1" %}
33 {% set volume_size = volume_size or 50 %}
34 {% set image_name = image_name or "yardstick-image" %}
35 {% set cpu_num = cpu_num or 1 %}
36 {% set ram_num = ram_num or 512 %}
37 {% set disk_num = disk_num or 7 %}
38 {% set run_time = run_time or 3000 %}
41 {% for num in range(stack_num) %}
45 filename: {{ directory }}/test
46 directory: {{ directory }}
50 rwmixwrite: {{rwmixwrite}}
55 host: demo.storage_bottlenecks-{{num}}-{{volume_num}}
59 duration: {{ run_time }}
64 {% for context_num in range(stack_num) %}
66 name: storage_bottlenecks-{{context_num}}-{{volume_num}}
78 volume_mountpoint: "/dev/vdb"
84 port_security_enabled: true