add yardstick iruya 9.0.0 release notes
[yardstick.git] / tests / opnfv / test_cases / opnfv_yardstick_tc006.yaml
1 ##############################################################################
2 # Copyright (c) 2017 Huawei Technologies Co.,Ltd and others.
3 #
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 ##############################################################################
9 ---
10
11 schema: "yardstick:task:0.1"
12 description: >
13     Yardstick TC006 config file;
14     Measure volume storage IOPS, throughput and latency using fio with job file.
15
16 {% set job_file_config = job_file_config or '["[random-writers]", ioengine=libaio, rw=randwrite, size=128m, bs=32k, direct=0, size=64m, numjobs=4]' %}
17 {% set directory = directory or '/FIO_Test' %}
18 {% set volume_size = volume_size or 200 %}
19 {% set provider = provider or none %}
20 {% set physical_network = physical_network or 'physnet1' %}
21 {% set segmentation_id = segmentation_id or none %}
22
23 schema: "yardstick:task:0.1"
24
25 scenarios:
26 -
27   type: Fio
28   options:
29     # input the content of a fio job file directly
30     job_file_config: {{ job_file_config }}
31     # or input the job file name
32     #job_file: "job_file.ini"
33     directory: {{ directory }}
34
35   host: fio.yardstick-TC006
36
37   runner:
38     type: Iteration
39     iterations: 1
40     interval: 1
41
42   sla:
43     read_bw: 6000
44     read_iops: 1500
45     read_lat: 500.1
46     write_bw: 6000
47     write_iops: 1500
48     write_lat: 500.1
49     action: monitor
50
51 context:
52   name: yardstick-TC006
53   image: yardstick-image
54   flavor: yardstick-flavor
55   user: ubuntu
56   servers:
57     fio:
58       floating_ip: true
59       volume:
60         name: test-volume
61         size: {{volume_size}}
62       volume_mountpoint: /dev/vdb
63
64   networks:
65     test:
66       cidr: '10.0.1.0/24'
67       {% if provider == "vlan" or provider == "sriov" %}
68       provider: {{provider}}
69       physical_network: {{physical_network}}
70         {% if segmentation_id %}
71       segmentation_id: {{segmentation_id}}
72         {% endif %}
73       {% endif %}