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 Docker/Podman
- Run workload in Pod using Kubernetes/OpenShift
- Post Installation
Installation
Download benchmark-runner image from quay.io
sudo podman pull quay.io/ebattat/benchmark-runner:latest
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:
ELASTICSEARCH=$elasticsearch [IP]
mandatory:
ELASTICSEARCH_PORT=$elasticsearch_port
optional:
PIN_NODE1=$pin_node1
optional:
PIN_NODE2=$pin_node2
Run workload using Podman/Docker
sudo podman run --rm -e WORKLOAD=stressng_pod -e KUBEADMIN_PASSWORD=$kubeadmin_password -e ELASTICSEARCH=$elasticsearch -e ELASTICSEARCH_PORT=$elasticsearch_port -e PIN_NODE1=$pin_node1 -v /root/.kube/config:/root/.kube/config -e log_level=INFO --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/OpenShift
[TBD]
Post Installation
Delete benchmark-runner image
sudo 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.32-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 229177803ec81c8b53e6b8a0d42c0289771eafa51370d5ec641547c658fad26d |
|
MD5 | ba8df4056c4a8f5aa07a3ae839bd9b1a |
|
BLAKE2b-256 | 19402818ae6fb94f11b1f17a8b48ad956eed29ccdd9c61e679af36b1359c7692 |