Benchmark Runner Tool
Project description
Benchmark-Runner
This tool provides a lightweight and flexible framework for running benchmark workloads on Kubernetes/OpenShift Pod or VM.
This tool support the following workloads:
- hammerdb: running hammerdb workload on the following databases: MSSQL, Mariadb, Postgresql on Pod and VM with Configuration
- stressng: running stressng workload on Pod or VM with Configuration
- uperf: running uperf workload on Pod or VM with Configuration
** First Phase: supports benchmark-operator workloads
Hammerdb Kibana dashboard:
Reference:
- The benchmark-runner package is located in PyPi
- The benchmark-runner container image is located in Quay.io
Table of Contents
- Installation
- Run workload using Podman or Docker
- Run workload in Pod using Kubernetes or OpenShift
- Post Installation
Installation
optional:
Download benchmark-runner image from quay.io
podman pull quay.io/ebattat/benchmark-runner:latest
Run workload using Podman or Docker
Environment variables description:
mandatory: KUBEADMIN_PASSWORD=$KUBEADMIN_PASSWORD
mandatory: WORKLOAD=$WORKLOAD
Choose one from the following list:
['stressng_pod', 'stressng_vm','uperf_pod', 'uperf_vm', 'hammerdb_pod_mariadb', 'hammerdb_pod_mssql', 'hammerdb_pod_postgres', 'hammerdb_vm_mariadb', 'hammerdb_vm_mssql', 'hammerdb_vm_postgres']
mandatory: PIN_NODE_BENCHMARK_OPERATOR=$PIN_NODE_BENCHMARK_OPERATOR [node selector for benchmark operator pod]
mandatory: PIN_NODE1=$PIN_NODE1 [node1 selector for running the workload]
mandatory: PIN_NODE2=$PIN_NODE2 [node2 selector for running the workload, i.e. uperf server and client, hammerdb database and workload]
optional: ELASTICSEARCH=$ELASTICSEARCH [ elasticsearch service name]
optional: ELASTICSEARCH_PORT=$ELASTICSEARCH_PORT
podman run --rm -e WORKLOAD=$WORKLOAD -e KUBEADMIN_PASSWORD=$KUBEADMIN_PASSWORD -e PIN_NODE_BENCHMARK_OPERATOR=$PIN_NODE_BENCHMARK_OPERATOR -e PIN_NODE1=$PIN_NODE1 -e PIN_NODE2=$PIN_NODE2 -e ELASTICSEARCH=$ELASTICSEARCH -e ELASTICSEARCH_PORT=$ELASTICSEARCH_PORT -e log_level=INFO -v $KUBECONFIG:/root/.kube/config --privileged quay.io/ebattat/benchmark-runner:latest
# For custom workload data configuration add:
-v /home/user/stressng/stressng_data.yaml:/benchmark_runner/benchmark_operator/template/stressng/stressng_data.yaml
Run workload in Pod using Kubernetes or OpenShift
[TBD]
Post Installation
optional:
Delete benchmark-runner image
podman rmi quay.io/ebattat/benchmark-runner:latest
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for benchmark_runner-1.0.62-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a45cd0e830921fb8fee5b20bff12b625e0b644d5ffb3035cec480e53d945e941 |
|
MD5 | fda30a9f3c6ed8a2f2adda489da24504 |
|
BLAKE2b-256 | c412246ed7131716a17971082605c5c109304e9bc479e53db0d6073f28916a32 |