Benchmark Runner Tool
Project description
![](media/op.png)
Benchmark-Runner ![](media/run.png)
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: support benchmark-operator workload
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)KUBECONFIG=$KUBECONFIG
(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
(optional)pin_node1=pin_node1
(optional)pin_node2=pin_node2
Run workload using Podman/Docker
# workload=stressng_pod
sudo podman run --rm -it -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/kubeconfig:/root/.kube/config -v /etc/hosts:/etc/hosts -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.13-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1a77ee45be6f595031a51f586e9ebec078640833f8ff64480a159eba00cb260 |
|
MD5 | bddb6d1fd92eed81c176643a837a6e59 |
|
BLAKE2b-256 | dd9057604c124db978245d65a45530538ca766c5927786077f2bdead4395c950 |