mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-21 13:08:00 +00:00
metrics: Add k8s sysbench documentation
This PR adds k8s sysbench documentation at general density documentation. Signed-off-by: Gabriela Cervantes <gabriela.cervantes.tellez@intel.com>
This commit is contained in:
parent
5a1b5d3672
commit
6328181762
@ -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.
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
function main() {
|
||||
|
Loading…
Reference in New Issue
Block a user