Skip to content

Commit

Permalink
update run workloads steps (#624)
Browse files Browse the repository at this point in the history
  • Loading branch information
ebattat authored Jul 28, 2023
1 parent 36f2f96 commit 4b77b05
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# To run a workload with custom parameters through JupyterLab terminal, follow these steps:

1. Open the terminal

```
cd /notebooks/templates/run_workloads
```

2. Clone the repository if not already cloned:

```
git clone https://github.com/redhat-performance/benchmark-runner
or
update the repository with "git pull" if already cloned.
```

3. Change the directory to benchmark-runner:

```
cd benchmark-runner
```

4. Run the following command in the terminal:

```
PYTHONPATH=. python3 benchmark_runner/main/main.py "$@"
```
or

```
./run_benchmark.sh arg1 arg2
```

**Optional**: instead of arguments, set environment variables in benchmark_runner/main/environment_variables.py, e.g., ('WORKLOAD', 'vdbench_vm').

**Optional**: For custom workload parameters, configure the templates in benchmark_runner/common/template_operations/templates.


Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Follow the stops:
# git clone https://github.com/redhat-performance/benchmark-runner
# update environment variables i.e. ('WORKLOAD','vdbench_vm') in benchmark_runner/main/environment_variables.py
# run from benchmark-runner root path
!/bin/sh

PYTHONPATH=. python3 benchmark_runner/main/main.py "$@"

0 comments on commit 4b77b05

Please sign in to comment.