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: content/learning-paths/servers-and-cloud-computing/kedify-http-autoscaling/http-scaling.md
+17-14Lines changed: 17 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,11 @@
1
1
---
2
-
title: "HTTP Scaling for Ingress-Based Applications"
2
+
title: "Autoscale HTTP applications with Kedify and Kubernetes Ingress"
3
3
weight: 4
4
4
layout: "learningpathall"
5
5
---
6
+
## Overview
6
7
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.
8
9
9
10
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).
The [Kedify Proxy](https://docs.kedify.io/scalers/http-scaler/#kedify-proxy) gathers request metrics used by the scaler to make decisions.
20
21
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`.
25
28
26
29
## Configure the Ingress IP environment variable
27
30
@@ -117,18 +120,18 @@ EOF
117
120
```
118
121
119
122
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).
122
125
123
-
## Verify the application is running correctly
126
+
## Verify the application is running
124
127
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:
126
129
127
130
```bash
128
131
kubectl get deployment application
129
132
```
130
133
131
-
In the output you should see 1 replica ready:
134
+
Expected output includes 1 available replica:
132
135
```output
133
136
NAME READY UP-TO-DATE AVAILABLE AGE
134
137
application 1/1 1 1 3m44s
@@ -225,17 +228,17 @@ application 0/0 0 0 110s
225
228
```
226
229
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.
227
230
228
-
####Verify the app can scale from zero
231
+
### Verify the app can scale from zero
229
232
230
-
Next, test that the application can scale back up from zero when traffic arrives. Send a request to the app:
0 commit comments