diff --git a/tests/metrics/density/README.md b/tests/metrics/density/README.md index e07ee18b39..d553740156 100644 --- a/tests/metrics/density/README.md +++ b/tests/metrics/density/README.md @@ -51,3 +51,8 @@ For more details see the [footprint test documentation](footprint_data.md). Measures the memory statistics *inside* the container. This allows evaluation of the overhead the VM kernel and rootfs are having on the memory that was requested by the container co-ordination system, and thus supplied to the VM. + +## `k8s-sysbench` + +`Sysbench`is an open-source and multi-purpose benchmark utility that evaluates parameters features tests for `CPU`, memory +and I/O. Currently the `k8s-sysbench` test is measuring the `CPU` performance. diff --git a/tests/metrics/density/k8s-sysbench.sh b/tests/metrics/density/k8s-sysbench.sh index a28daf56a1..288e69957a 100755 --- a/tests/metrics/density/k8s-sysbench.sh +++ b/tests/metrics/density/k8s-sysbench.sh @@ -8,7 +8,7 @@ set -o errexit set -o nounset set -o pipefail -SCRIPT_PATH=$(dirname "$(readlink -f "$0")" +SCRIPT_PATH=$(dirname "$(readlink -f "$0")") source "${SCRIPT_PATH}/../lib/common.bash" sysbench_file=$(mktemp sysbenchresults.XXXXXXXXXX) TEST_NAME="${TEST_NAME:-sysbench}" @@ -48,25 +48,15 @@ function sysbench_start_deployment() { # Check no processes are left behind check_processes - if [ -z "${CI_JOB}" ]; then - # Start kubernetes - start_kubernetes - fi - - export KUBECONFIG="$HOME/.kube/config" export pod_name="test-sysbench" kubectl create -f "${SCRIPT_PATH}/runtimeclass_workloads/sysbench-pod.yaml" kubectl wait --for=condition=Ready --timeout=120s pod "$pod_name" - } function sysbench_cleanup() { kubectl delete pod "$pod_name" - if [ -z "${CI_JOB}" ]; then - end_kubernetes - check_processes - fi + check_processes } function main() {