You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: benchmarks/online-inference-pipeline/README.md
+12-10Lines changed: 12 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -8,28 +8,30 @@ This repository benchmarks a deployment running inside **Hopsworks** using [Locu
8
8
- Run all the provided notebooks to set up your deployment inside Hopsworks.
9
9
10
10
2.**Configure Target Host**
11
-
- Add the **host name** and **IP address** of your deployment in [`locustfile.py`](https://github.com/logicalclocks/hopsworks-tutorials/blob/master/benchmarks/model-deployment/locust/locustfile.py#L12).
11
+
- Add the **host name** and **IP address** of your deployment in [`locustfile.py`](https://github.com/logicalclocks/hopsworks-tutorials/blob/master/benchmarks/online-inference-pipeline/locust/locustfile.py#L12).
12
12
- You can find this information in the Hopsworks **Deployment UI**.
13
13
14
14
3.**Add Hopsworks API Key**
15
-
- Insert your Hopsworks API key into the same [`locustfile.py`](https://github.com/logicalclocks/hopsworks-tutorials/blob/master/benchmarks/model-deployment/locust/locustfile.py#L12).
15
+
- Insert your Hopsworks API key into the same [`locustfile.py`](https://github.com/logicalclocks/hopsworks-tutorials/blob/master/benchmarks/online-inference-pipeline/locust/locustfile.py#L12).
16
16
- Generate the API key by following [this guide](https://docs.hopsworks.ai/latest/user_guides/projects/api_key/create_api_key/).
17
17
18
-
4.**Build the Locust Docker Image**
19
-
- Use the provided [Dockerfile](https://github.com/logicalclocks/hopsworks-tutorials/blob/master/benchmarks/model-deployment/locust/Dockerfile) to build a Locust image.
18
+
4.**Create the 'HOPSWORKS_API_KEY' secret**
19
+
- Create a secret with the name `HOPSWORKS_API_KEY` which contains the API key by following [this guide](https://docs.hopsworks.ai/latest/user_guides/projects/secrets/create_secret/).
20
+
5.**Build the Locust Docker Image**
21
+
- Use the provided [Dockerfile](https://github.com/logicalclocks/hopsworks-tutorials/blob/master/benchmarks/online-inference-pipeline/locust/Dockerfile) to build a Locust image.
20
22
- Push the image to your preferred container registry.
- Run the [deployment script](https://github.com/logicalclocks/hopsworks-tutorials/blob/master/benchmarks/model-deployment/locust/kubernetes-locust/deploy.sh) to deploy Locust master and worker nodes.
29
+
7.**Deploy Locust**
30
+
- Run the [deployment script](https://github.com/logicalclocks/hopsworks-tutorials/blob/master/benchmarks/online-inference-pipeline/locust/kubernetes-locust/deploy.sh) to deploy Locust master and worker nodes.
29
31
- This will deploy into a Kubernetes namespace named `locust`.
30
32
-**Note:** Ensure you have `kubectl` access to the cluster.
31
33
32
-
7.**Access Locust UI**
34
+
8.**Access Locust UI**
33
35
- Once deployed, port-forward port `8089` from the `locust-master` service to your local machine.
34
36
- Access the Locust Web UI at [http://localhost:8089](http://localhost:8089) to run and monitor your load tests.
0 commit comments