-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
41 additions
and
4 deletions.
There are no files selected for viewing
38 changes: 38 additions & 0 deletions
38
benchmark_runner/jupyterlab/templates/run_workload/how_to_run_workload.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
|
||
|
7 changes: 3 additions & 4 deletions
7
benchmark_runner/jupyterlab/templates/run_workload/run_workload.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 "$@" | ||
|