Merge "the recovery action of "baremetal down" should be triggered mandatory"
[yardstick.git] / samples / perf.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
16 scenarios:
17 -
18   type: Perf
19   options:
20     load: true
21     events:
22     - task-clock
23     - cpu-clock
24     - context-switches
25     - page-faults
26     - cpu-migrations
27   host: hades.demo
28
29   runner:
30     type: Duration
31     duration: 30
32
33   sla:
34     metric: context-switches
35     smaller_than_expected: true
36     expected_value: 300
37     action: monitor
38
39 context:
40   name: demo
41   image: yardstick-image
42   flavor: yardstick-flavor
43   user: ubuntu
44
45   servers:
46     hades:
47       floating_ip: true
48   networks:
49     test:
50       cidr: "10.0.1.0/24"