mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-23 09:47:25 +00:00
Merge pull request #7282 from GabyCT/topic/enableblogbench
metrics: Enable blogbench test
This commit is contained in:
@@ -45,3 +45,29 @@ checktype = "mean"
|
||||
midval = 4135244.0
|
||||
minpercent = 20.0
|
||||
maxpercent = 20.0
|
||||
|
||||
[[metric]]
|
||||
name = "blogbench"
|
||||
type = "json"
|
||||
description = "measure container average of blogbench write"
|
||||
# Min and Max values to set a 'range' that
|
||||
# the median of the CSV Results data must fall
|
||||
# within (inclusive)
|
||||
checkvar = ".\"blogbench\".Results | .[] | .write.Result"
|
||||
checktype = "mean"
|
||||
midval = 1623.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 = 96939.0
|
||||
minpercent = 20.0
|
||||
maxpercent = 20.0
|
||||
|
@@ -45,3 +45,29 @@ checktype = "mean"
|
||||
midval = 3677280.0
|
||||
minpercent = 25.0
|
||||
maxpercent = 25.0
|
||||
|
||||
[[metric]]
|
||||
name = "blogbench"
|
||||
type = "json"
|
||||
description = "measure container average of blogbench write"
|
||||
# Min and Max values to set a 'range' that
|
||||
# the median of the CSV Results data must fall
|
||||
# within (inclusive)
|
||||
checkvar = ".\"blogbench\".Results | .[] | .write.Result"
|
||||
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
|
||||
|
@@ -72,17 +72,15 @@ function run_test_memory_usage_inside_container() {
|
||||
|
||||
create_symbolic_links ${KATA_HYPERVISOR}
|
||||
bash tests/metrics/density/memory_usage_inside_container.sh 5
|
||||
|
||||
check_metrics
|
||||
}
|
||||
|
||||
function run_test_blogbench() {
|
||||
info "Running Blogbench test using ${KATA_HYPERVISOR} hypervisor"
|
||||
|
||||
# ToDo: remove the exit once the metrics workflow is stable
|
||||
exit 0
|
||||
create_symbolic_links ${KATA_HYPERVISOR}
|
||||
bash tests/metrics/storage/blogbench.sh
|
||||
|
||||
check_metrics
|
||||
}
|
||||
|
||||
function main() {
|
||||
|
@@ -36,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})
|
||||
@@ -83,11 +84,11 @@ EOF
|
||||
local json="$(cat << EOF
|
||||
{
|
||||
"write": {
|
||||
"Result" : "${writes}",
|
||||
"Result" : ${writes},
|
||||
"Units" : "items"
|
||||
},
|
||||
"read": {
|
||||
"Result" : "${reads}",
|
||||
"Result" : ${reads},
|
||||
"Units" : "items"
|
||||
},
|
||||
"Nb blogs": {
|
||||
|
@@ -11,6 +11,8 @@ FROM docker.io/library/ubuntu:latest
|
||||
# Version of the Dockerfile
|
||||
LABEL DOCKERFILE_VERSION="1.0"
|
||||
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
# URL for blogbench test and blogbench version
|
||||
ENV BLOGBENCH_URL "https://download.pureftpd.org/pub/blogbench"
|
||||
ENV BLOGBENCH_VERSION 1.1
|
||||
|
Reference in New Issue
Block a user