mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-29 12:14:48 +00:00
checkmetrics: Add blogbench read value for qemu
This PR adds the blogbench read value for qemu. Signed-off-by: Gabriela Cervantes <gabriela.cervantes.tellez@intel.com>
This commit is contained in:
parent
2935aeb7d7
commit
9e048c8ee0
@ -58,3 +58,16 @@ checktype = "mean"
|
||||
midval = 1639.0
|
||||
minpercent = 20.0
|
||||
maxpercent = 20.0
|
||||
|
||||
[[metric]]
|
||||
name = "blogbench"
|
||||
type = "json"
|
||||
description = "measure container average of blogbench read"
|
||||
# Min and Max values to set a 'range' that
|
||||
# the median of the CSV Results data must fall
|
||||
# within (inclusive)
|
||||
checkvar = ".\"blogbench\".Results | .[] | .read.Result"
|
||||
checktype = "mean"
|
||||
midval = 98687.0
|
||||
minpercent = 20.0
|
||||
maxpercent = 20.0
|
||||
|
@ -11,7 +11,6 @@
|
||||
# they are total scores for all iterations (this is the blogbench default output)
|
||||
|
||||
set -e
|
||||
set -x
|
||||
|
||||
# General env
|
||||
SCRIPT_PATH=$(dirname "$(readlink -f "$0")")
|
||||
@ -27,7 +26,7 @@ ITERATIONS="${ITERATIONS:-30}"
|
||||
|
||||
# Directory to run the test on
|
||||
# This is run inside of the container
|
||||
TESTDIR="${TESTDIR:-/home}"
|
||||
TESTDIR="${TESTDIR:-/tmp}"
|
||||
CMD="blogbench -i ${ITERATIONS} -d ${TESTDIR}"
|
||||
|
||||
function main() {
|
||||
@ -37,6 +36,7 @@ function main() {
|
||||
init_env
|
||||
check_cmds "${cmds[@]}"
|
||||
check_ctr_images "${IMAGE}" "${DOCKERFILE}"
|
||||
sudo systemctl restart containerd
|
||||
metrics_json_init
|
||||
|
||||
local output=$(sudo -E ${CTR_EXE} run --rm --runtime=${CTR_RUNTIME} ${IMAGE} test ${CMD})
|
||||
@ -84,11 +84,11 @@ EOF
|
||||
local json="$(cat << EOF
|
||||
{
|
||||
"write": {
|
||||
"Result" : "${writes}",
|
||||
"Result" : ${writes},
|
||||
"Units" : "items"
|
||||
},
|
||||
"read": {
|
||||
"Result" : "${reads}",
|
||||
"Result" : ${reads},
|
||||
"Units" : "items"
|
||||
},
|
||||
"Nb blogs": {
|
||||
|
Loading…
Reference in New Issue
Block a user