Stop running tests from tests/unit
[yardstick.git] / samples / netperf_soak.yaml
1 ##############################################################################
2 # Copyright (c) 2018 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 # Bottlenecks long duration test need Yardstick to create VM pairs and use netperf sending messages
11 # This yaml file for the above operations based on Netperf mode similiar as netperf.yaml
12 # UDP_STREAM is used and out_opt is customized
13
14 schema: "yardstick:task:0.1"
15
16 {% set tx_msg_size = tx_msg_size or "8K" %}
17 {% set rx_msg_size = rx_msg_size or "8K" %}
18 {% set test_time = test_time or "10" %}
19 {% set out_opt = out_opt or "THROUGHPUT,THROUGHPUT_UNITS,MEAN_LATENCY,LOCAL_CPU_UTIL,REMOTE_CPU_UTIL,LOCAL_BYTES_SENT,REMOTE_BYTES_RECVD" %}
20 {% set image_name = image_name or "yardstick-image" %}
21 {% set cpu_num = cpu_num or 1 %}
22 {% set ram_num = ram_num or 512 %}
23 {% set disk_num = disk_num or 7 %}
24
25 scenarios:
26 -
27   type: Netperf
28   options:
29     testname: 'UDP_STREAM'
30     send_msg_size: {{tx_msg_size}}
31     recv_msg_size: {{rx_msg_size}}
32     duration: {{test_time}}
33     output_opt: {{out_opt}}
34
35   host: netperf-host.demo
36   target: netperf-target.demo
37
38   runner:
39     type: Iteration
40     iterations: 1
41     interval: 1
42     run_step: 'setup,run'
43
44   sla:
45     mean_latency: 100
46     action: monitor
47
48 context:
49   name: demo
50   image: {{image_name}}
51   flavor:
52     vcpus: {{cpu_num}}
53     ram: {{ram_num}}
54     disk: {{disk_num}}
55   user: ubuntu
56
57   placement_groups:
58     pgrp1:
59       policy: "availability"
60
61   servers:
62     netperf-host:
63       floating_ip: true
64       placement: "pgrp1"
65     netperf-target:
66       floating_ip: false
67       placement: "pgrp1"
68
69   networks:
70     test:
71       cidr: '10.0.1.0/24'