Merge "Adds option parameters to TC074" into stable/gambia
[yardstick.git] / samples / background-task.yaml
1 ##############################################################################
2 # Copyright (c) 2017 Ericsson AB 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 # Demonstrate use of background scenarios
12
13 schema: "yardstick:task:0.1"
14
15 scenarios:
16 -
17   type: CPUload
18   options:
19     interval: 1
20
21   host: zeus.demo
22
23   # This scenario is run as a background scenario and runs
24   # in parallel with other scenarios.
25   #
26   # Background scenarios are started before normal scenarios
27   # and are terminated when all normal scenarios have ended.
28   #
29   # A background scenario does not need a runner section as it
30   # will always use an infinite duration runner that are terminated
31   # when all normal scenarios have completed.
32   #
33   run_in_background: true   # default: false
34 -
35   type: Iperf3
36   options:
37   host: zeus.demo
38   target: hera.demo
39
40   runner:
41     type: Duration
42     duration: 60
43
44   sla:
45     bytes_per_second: 2900000000
46     action: monitor
47
48 context:
49   name: demo
50   image: yardstick-image
51   flavor: yardstick-flavor
52   user: ubuntu
53
54   placement_groups:
55     pgrp1:
56       policy: "availability"
57
58   servers:
59     zeus:
60       floating_ip: true
61       placement: "pgrp1"
62     hera:
63       floating_ip: true
64       placement: "pgrp1"
65
66   networks:
67     test:
68       cidr: '10.0.1.0/24'