Merge "Improve NSB Standalone XML generation"
[yardstick.git] / tests / opnfv / test_cases / opnfv_yardstick_tc082.yaml
1 ##############################################################################
2 # Copyright (c) 2017 kristian.hunt@gmail.com 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 # Sample benchmark task config file
11 # use perf to perform Linux performance measurements
12 # this sample demonstrates measurements of various software perf events
13
14 schema: "yardstick:task:0.1"
15 description: >
16     Yardstick TC082 config file;
17     Measure various software perf events by perf.
18
19 {% set provider = provider or none %}
20 {% set physical_network = physical_network or 'physnet1' %}
21 {% set segmentation_id = segmentation_id or none %}
22
23 scenarios:
24 -
25   type: Perf
26   options:
27     load: true
28     events:
29     - task-clock
30     - cpu-clock
31     - context-switches
32     - page-faults
33     - cpu-migrations
34   host: hades.demo
35
36   runner:
37     type: Duration
38     duration: 30
39
40   sla:
41     metric: context-switches
42     smaller_than_expected: true
43     expected_value: 300
44     action: monitor
45
46 context:
47   name: demo
48   image: yardstick-image
49   flavor: yardstick-flavor
50   user: ubuntu
51
52   servers:
53     hades:
54       floating_ip: true
55   networks:
56     test:
57       cidr: "10.0.1.0/24"
58       {% if provider == "vlan" %}
59       provider: {{provider}}
60       physical_network: {{physical_network}}
61         {% if segmentation_id %}
62       segmentation_id: {{segmentation_id}}
63         {% endif %}
64       {% endif %}