diff options
author | 2019-12-13 07:47:41 +0000 | |
---|---|---|
committer | 2019-12-13 07:47:41 +0000 | |
commit | 88c88d0931c82d1b61fe025f0e07bc5cecf88f27 (patch) | |
tree | 70e1d1ae0e141e9bd76c99ef9de266392da2733c /samples | |
parent | 04b5497734932b7b90a37855432a62d12180e3e1 (diff) | |
parent | 1eabf6e52550e3c4af39f54b68f7b85466e80ea4 (diff) |
Merge "Add test case related to measure compute score and its energy consumption impact"
Diffstat (limited to 'samples')
-rwxr-xr-x | samples/energy.yaml | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/samples/energy.yaml b/samples/energy.yaml new file mode 100755 index 000000000..bc8f8228b --- /dev/null +++ b/samples/energy.yaml @@ -0,0 +1,53 @@ +##############################################################################
+# Copyright (c) 2019 Orange and others.
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
+---
+# Sample benchmark task config file
+# Monitor energy consumption during a cpu test
+# Should be used inside test cases where UnixBench is replaced by other
+# scenario type. This enables to easily consider energy consumption as a
+# mandatory metric for any performance test
+
+schema: "yardstick:task:0.1"
+
+{% set target = target or "node5"%}
+{% set file = file or '/etc/yardstick/pod.yaml' %}
+{% set duree = 60 %}
+{% set intervalle = 5 %}
+scenarios:
+
+-
+ type: Energy
+ run_in_background: true
+ target: {{target}}.LF
+
+ runner:
+ type: Duration
+ duration: {{duree}}
+ interval: {{intervalle}}
+
+ sla:
+ action: monitor
+
+-
+ type: UnixBench
+ options:
+ run_mode: 'verbose'
+ test_type: 'dhry2reg'
+ host: {{target}}.LF
+
+ runner:
+ type: Iteration
+ iterations: 1
+ interval: 1
+
+
+context:
+ type: Node
+ name: LF
+ file: {{file}}
|