Skip to content

Commit 7ec2fee

Browse files
Updates to kedify HTTP autoscaling learning path
1 parent cdef234 commit 7ec2fee

2 files changed

Lines changed: 18 additions & 15 deletions

File tree

content/learning-paths/servers-and-cloud-computing/kedify-http-autoscaling/http-scaling.md

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
---
2-
title: "HTTP Scaling for Ingress-Based Applications"
2+
title: "Autoscale HTTP applications with Kedify and Kubernetes Ingress"
33
weight: 4
44
layout: "learningpathall"
55
---
6+
## Overview
67

7-
In this section, you’ll gain hands-on experience with Kedify HTTP autoscaling. You will deploy a small web service, expose it through a standard Kubernetes Ingress, and rely on Kedify’s autowiring to route traffic via its proxy so requests are measured and drive scaling.
8+
In this section, you’ll gain hands-on experience with Kedify HTTP autoscaling. You will deploy a small web service, expose it through a standard Kubernetes Ingress, and rely on Kedify’s autowiring to route traffic through its proxy so requests are measured and drive scaling.
89

910
You will scale a real HTTP app exposed through Kubernetes Ingress using Kedify’s [kedify-http](https://docs.kedify.io/scalers/http-scaler/) scaler. You will deploy a simple application, enable autoscaling with a [ScaledObject](https://keda.sh/docs/latest/concepts/scaling-deployments/), generate load, and observe the system scale out and back in (including scale-to-zero when idle).
1011

@@ -18,10 +19,12 @@ Ingress → kedify-proxy → Service → Deployment
1819

1920
The [Kedify Proxy](https://docs.kedify.io/scalers/http-scaler/#kedify-proxy) gathers request metrics used by the scaler to make decisions.
2021

21-
## Deployment Overview
22-
* Deployment & Service: An HTTP server with a small response delay to simulate work
23-
* Ingress: Public entry point configured using host `application.keda`
24-
* ScaledObject: A Kedify HTTP scaler using `trafficAutowire: ingress`
22+
## Deployment overview
23+
24+
There are three main components at play:
25+
* For the application deployment and service, there is an HTTP server with a small response delay to simulate work.
26+
* For ingress, there is a public entry point that is configured using the `application.keda` host.
27+
* For the ScaledObject, there is a Kedify HTTP scaler using `trafficAutowire: ingress`.
2528

2629
## Configure the Ingress IP environment variable
2730

@@ -117,18 +120,18 @@ EOF
117120
```
118121

119122
Notes:
120-
- `RESPONSE_DELAY` adds ~300ms latency per request, making scaling effects easier to see.
121-
- The Ingress uses host `application.keda`. To access this app we will use your ingress controller’s IP with a `Host:` header (shown below).
123+
- `RESPONSE_DELAY` adds ~300 ms latency per request, making scaling effects easier to see.
124+
- The Ingress uses host `application.keda`. To access this app, you will use your Ingress controller’s IP with a `Host:` header (shown below).
122125

123-
## Verify the application is running correctly
126+
## Verify the application is running
124127

125-
You will now check if you have 1 replica of the application deployed and ready:
128+
Run the following command to check that 1 replica is ready:
126129

127130
```bash
128131
kubectl get deployment application
129132
```
130133

131-
In the output you should see 1 replica ready:
134+
Expected output includes 1 available replica:
132135
```output
133136
NAME READY UP-TO-DATE AVAILABLE AGE
134137
application 1/1 1 1 3m44s
@@ -225,17 +228,17 @@ application 0/0 0 0 110s
225228
```
226229
This continuously monitors the deployment status in the default namespace. Once traffic stops and the idle window has passed, you should see the application deployment report 0/0 replicas, indicating that it has successfully scaled to zero.
227230

228-
#### Verify the app can scale from zero
231+
### Verify the app can scale from zero
229232

230-
Next, test that the application can scale back up from zero when traffic arrives. Send a request to the app:
233+
Send a request to trigger scale-up:
231234

232235
```bash
233236
curl -I -H "Host: application.keda" http://$INGRESS_IP
234237
```
235238
The application should scale from 0 → 1 replica automatically.
236239
You should receive an HTTP 200 OK response, confirming that the service is reachable again.
237240

238-
#### Test higher load
241+
The application scales from 0 → 1 replica automatically, and you should receive an HTTP `200 OK` response.
239242

240243
Now, generate a heavier, sustained load against the application. You can use `hey` (or a similar benchmarking tool):
241244

content/learning-paths/servers-and-cloud-computing/kedify-http-autoscaling/install-ingress.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: "Install Ingress Controller"
2+
title: "Install an ingress controller"
33
weight: 3
44
layout: "learningpathall"
55
---

0 commit comments

Comments
 (0)